Questions Tagged scheduler
External Drag for scheduler with calendar
I want to perform an external drag from a gridview to a Scheduler with a linked navigator to select date. If we select different date from the calendar, e.StartDate and e.EndDate will still be Today ...
Problem moving events
Good Morning, I'm initializing a scheduler javascript. I have a problem when I move the data. I was trying to create a method that would allow me to avoid overlap of events. Through a Request Daypilo...
A problem when expanding a resource at the middle or bottom of DayPilot scheduler
Good Day for you all. I have a problem with the DayPilot Scheduler Control (Take for example this one http://www.daypilot.org/demo/Scheduler/Theme8.aspx when making 'Room A' at the bottom of the Reso...
Fixed height for row (css override) ?
"Hi, with Daypilot Scheduler < 7.0 is it possible to adjust the row height manually (maybe with some css overrides) to a fixed height ? In my specific case I need to limit the rows displayed for a re...
TimeRange Selecting adds one hour
Answered: How do you read the e.start value? On the client side, e.start() returns a DayPilot.Date object. It holds the date in the internal .d property which shouldn't be read directly (it's stored as a GMT d...
IE + Floating Month Headers in Scheduler
Thank you for the update to the Month Headers in Scheduler, this is something that I was hoping for for a long time. Unfortunately, our official browser at work is Internet Explorer, and the floating...
Performance problem collapsing/expanding when running 200 resources in 25 groups
Answered: The first thing to try is to disable the Row Header Width Auto-Fit feature: http://doc.daypilot.org/scheduler/row-header-width-auto-fit/ More resource header optimizations are scheduled for the next ...
Zooming in JS-Version?
Answered: The zooming implementation in the ASP.NET demo (http://www.daypilot.org/demo/Scheduler/Zooming.aspx) is quite simple: It overrides the default time header cell text using BeforeTimeHeaderRender event...
Capture global mousedown/up event
I need to capture any mousedown and mouseup event fired on the scheduler. I've tried just adding an eventlistener to the entire dps container like this: $("#dps")[0].addEventListener("mousedown", fun...
Get visible time range (scheduler)
Answered: Sorry, didn't see this: http://api.daypilot.org/daypilot-scheduler-getviewport/ dps.getViewPort().start and dps.getViewPort().end is what I was looking for.
setting cellBackColor after init doesn't work
Answered: This issue is fixed now in build 7.7.698 (see the sandbox): http://javascript.daypilot.org/sandbox/
Scheduler Gantt View Multiple Dates per Row
Answered: What you describe is basically the default "Resources" mode: http://doc.daypilot.org/scheduler/resources/ You need separate database tables for "Tasks" and "Actions". Task = has a name, displayed in ...
event for multiple days not correct on scheduler
I am trying to get an event on scheduler to span multiple days. The start and end date are 3 days apart but scheduler only shows the event on the first day (my scheduler groups by day & hour) but wit...
How do I change "resource-hover-color" ?
Answered: You can use crosshairColor and crosshairOpacity properties. The defaults:
.crosshairColor = 'Gray';
.crosshairOpacity = 20;
Event bg color does not change after being selected in scheduler
Answered: Nevermind I found my own answer on this board with a bit more searching. For those curious here is the post that helped me. Thanks. http://forums.daypilot.org/Topic.aspx/1907/month-changing-event-bac...
Object expected when pasting an event in Scheduler
Answered: It looks like you might be missing the DayPilot object reference when calling commandCallBack:
v.items = [{'text':'Paste', 'onclick':function() { var e = this.source; var command = this.item.comman...
Changing Scheduler.CellGroupBy on runtime
Answered: Fixed it by adding "if (level == 0) groupBy = _scheduler.CellGroupBy;" to function "private TimeHeaderRow PrepareGroupline(int level)" in SchedulerTimeHeader.cs after line "GroupBy groupBy = _schedul...
Scheduler Event Move with ctrl key : NullReferenceException
Answered: You need to change EventMoveHandling="CallBack" to EventMoveHandling="JavaScript". It's now added to the documentation: http://doc.daypilot.org/scheduler/event-copying/
Permissions on Scheduler
Answered: The best way to do this is to set EventMoveHandling and EventResizeHandling valu depending on the permission check. The default value is "Disabled" which will work for read-only scenarios. If the use...
Custom content in scheduler event DayPilotBubble
Answered: There are two options: 1. You can define the bubble HTML in BeforeEventRender event handler. This will store the bubble HTML with the event (it will be static). No server-side call will be required w...
Scheduler getRow renamed to $68
Answered: This method was internal and is now hidden. You can use the following method to get information about a cell under certain position:
var cell = dps.cells.findByPixels(120, 1)[0];
var start = cell....
Set a Resource as Unavailable for a Time Period on Scheduler
Answered: You can set custom background color, HTML and CSS class for individual grid cells using BeforeCellRender event handler: http://doc.daypilot.org/scheduler/cell-customization/
trying to remove a resource row removes incorrect resource cells
Hi Dan, I have added a functionality to remove a resource from the scheduler control by clicking on an icon in the resource header. How I accomplish this is by iterating over dps.resources array to f...
JavaScript error when right-clicking on a cell in the scheduler control when there are no context menu items defined
I am using the DayPilotMenu control and the DayPilotScheduler in tandem in an ASP.NET MVC application. The DayPilotMenu control displays a context menu when the user clicks in one of the cells of the...
Adjusting the event starting position in the scheduler
Answered: You can configure this behavior using UseEventBoxes property. UseEventBoxes = UseEventBoxesType.Never will do exactly what you need.
How to update Scheduler data using ajax/javascript?
Answered: You can use the client-side API to modify the .resources array: http://api.daypilot.org/daypilot-scheduler-resources/ Then call .update() to refresh the scheduler: http://api.daypilot.org/daypilot-sc...
Context Menu Styling - Not working
Answered: The menu CssClassPrefix syntax has been updated recently to match the other other controls. If you replace CssClassPrefix="menu_default_" with CssClassPrefix="menu_default" (note the missing last und...
Crosshair when Drag&Drop
Hi there, is it possible thow show the crosshair in scheduler when I drag an event? At the time when I click the event to drag&drop, the crosshair is not available. Thanks for help. Dennis
Add Columnb/Attributes
Answered: In BeforeEventRender event handler, you can reach the original data item using e.DataItem property:
e.DataItem["field1"] // field1
e.DataItem.Source // the original object
e.DataItem is access...
Custom context menu when right-clicking on empty space in Scheduler
I am using Daypilot for ASP.NET MVC, specifically the Scheduler. I set the ContextMenuSelection property of the Scheduler to show a context menu when a user right-clicks on an empty space in the sche...