Questions Tagged how-to
Get start date from Navigator
Hi, I want to get the date selected from the Navigator and pass it in my Page_Load method. Does anyone know how to do this? Thanks
Prevent event overlapping
Hello, I have seen two questions regarding this on the forum and the feature was supposed to be build in in 2011. Any news on that? How can I prevent my event from overlapping during TimeRangeSelecti...
Events rendering very slowly on DP Calendar
Answered: Hi Dan, I think I found a possible reason why the calendar was so slow to load. I had a OnBeforeEventRender method to apply a color code each event, and that is why the rendering time was so long. No...
EventManager not found
Answered: OK I found it, you have to create this class on your own according to http://code.daypilot.org/62492/scheduler-for-asp-net-mvc-4-razor
Calendar not updating
Answered: I found the problem myself, for future references - you have to update your .Columns to reflect the new date as well.
Tree Resources - "htmlfile" invalid argument
Hello, As soon as I try to put my resources in a tree, I get a 'htmlfile': invalid argument error for each of my resources. At this exact line: if($m.Columns==null||$m.Columns.length==0){c.colSpan=$0...
Add title header to Month
Answered: There is no built-in header but you can add your own: http://kb.daypilot.org/92633/how-to-show-the-selected-date-using-a-label-control/
DayPilot Pro WeekView Bug inside update panel
Answered: There is now a new version available that improves the interoperability with UpdatePanel: http://www.daypilot.org/daypilot-pro-for-asp-net-webforms-7-1-sp3.html Please let me know if the problem pers...
Horizontal Scroll
Hi, We have a requirement where the Calendar control is used to display one week at a time. We want to be able to have 7 days available on the screen when loaded but only Monday to Friday to be visib...
Decoding and finding RecurrenceException.EncodeExceptionDeleted in recurrence field using SQL query.
I am trying to find out if the recurrence field of a record is RecurrenceException.EncodeExceptionDeleted using SQL query. I look at the website but there is no mention of how to decode the string of...
Catch cell in doubleClick
Hi, I'm trying to block events clientside (doubleclick, to add an event) During the dps_BeforeCellRender, I place the cells to isBusiness (+ change CSS) Then i catch the event using the javascript fu...
Scheduler: Custom loading animation
Answered: You can override .loadingStart and loadingStop on the client side but this is not public API. You can also modify the loading div content using LoadingLabelText property (it accepts HTML as well).
Conflict detector ignore Recurring Events event in the DataTable?
Answered: The ConflictDetector API has been extended to handle recurring events in 7.1 release. http://www.daypilot.org/daypilot-pro-for-asp-net-webforms-7-1.html It's not used in the tutorial yet (the tutoria...
Question about Conflict detector Parameter???
Answered: Please see here: http://forums.daypilot.org/Topic.aspx/1776/conflict-detection-still-has-some-problems-bug
Scheduler and Sql Server
Answered: "I cannot see the database structure." http://www.daypilot.org/scheduler-tutorial.html The link above gives the DB structure as a script, which works fine in SQL Server. You'd then use the ADO.Net ob...
Pass Json to controller.js without using backend
We are currently pulling time records, validating those records. Then we call the "Backend" method in the Calendar controller in order to generate the daily calendars. I would like to by pass the Cal...
Remove recurrence exception in scheduler
Answered: You can extract the original start date from the recurrence string using RecurrenceRule.DecodeStart():
DateTime originalStart = RecurrenceRule.DecodeStart(recurrenceString);
There are also other ...
DP Month Recurring Events Using Modal Window
Answered: The following menu item will open Edit.aspx page in a modal dialog :
<DayPilot:MenuItem Text="Open" Action="JavaScript" JavaScript="dialog().showUrl('Edit.aspx?id=' + e.value());" />
This is the ...
TextBox in Resource column
Answered: If you insert the <input> element manually you won't be able to get its value easily on the server side - it won't be mapped automatically to a server-side control because it doesn't exist. You shoul...
Scheduler Tutorial: Hotel Room Booking. Left Resize doesn't work??? Right Resize works
Answered: It looks like there is a bug in the EventResize event handler. If you modify it like this it will work fine:
protected void DayPilotScheduler1_EventResize(object sender, DayPilot.Web.Ui.Events....
Scheduler: Get events for a given resource
Answered: On the client-side, you can do the following:
var hasEvents = dps.findRowByResourceId("A").events.length > 0;
On the server side, there is no internal structure that keeps events matched to the r...
How to change width for first column in Timeline-View (DayPilotScheduler)
Answered: Try the RowHeaderWidth property.
Scheduler: Dynamic Node Loading
Answered: The events have to be loaded in full (for all resources) - except of the dynamic loading mode (DynamicLoading="true") when the events loaded in the Scroll event handler are added to the existing even...
Hide hours in schuduler mode
Answered: The Scheduler control (http://www.daypilot.org/scheduler.html) doesn't support hiding individual columns in the Lite version. In the Pro version, you can use BusinessBeginsHour, BusinessEndsHour, and...
NavigateURL not opening in a new window
Answered: There was a bug - it's now fixed in build 7.1.2716. You can download it in the sandbox: http://www.daypilot.org/sandbox/ See also: http://www.daypilot.org/daypilot-pro-for-asp-net-webforms-7-2.html
Is there any way to select over an exisiting block?
Answered: You can adjust the row height using RowMarginBottom and RowMinHeight properties: http://www.daypilot.org/scheduler-row-height.html
Daypilot Month Bubble on Click?
Answered: You can use the following settings:
<DayPilot:DayPilotMonth
...
EventClickHandling="JavaScript"
EventClickJavaScript="bubble.showEvent(e)"
...
/>
<DayPilot:DayPilotBubble
...
...
EventFontSize does update font size if set from code-behind
Hi, I am using DayPilot version 6.4.2265.1 and I am coming up with event font size issue while setting it from code-behind. But when I set it from designer (.aspx) EventFontSize="14pt" it works. I wa...
DayPilotScheduler - Name of the event
Hello, First of all, I would congratulate developers of this solution, this is a very very nice component ! I am trying to use the scheduler in order to display some bookings in the wallchart. But my...