Questions Tagged how-to
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...
Disable cell selection
Answered: At this moment it's only possible to disable the cells for the whole row by marking it as parent using PreventParentUsage. See also: http://code.daypilot.org/34704/restaurant-table-reservation-tutori...
How to Zoom out to year(s)
I have 10+ years of data and I am trying to Zoom way out in years. I am following the sample located here, http://forums.daypilot.org/Topic.aspx/454/how_to_achieve_the_zooming_feature_in_scheduler_co...
Scheduler event with milestones
Answered: In the 7.1 release, it's possible to add custom "active areas" to the event. It's a rectangular area that is displayed when you move the mouse over the event. In order to place the area at the right ...
Vertical Scroll
Answered: HeightSpec="Max" means the height will never be more than Height value (in pixels). You can try HeightSpec="Full". You can also set the initial scrollbar position using ScrollPositionHour property.
Calendar - Weekend different color
Answered: You can change the color of the background cells using BeforeCellRender event handler. You can change the cell CSS class using e.CssClass, you can also change the IsBusiness status using e.IsBusiness...
Vertical scrollbar
Answered: You can control the vertical scrollbar using HeightSpec property: http://www.daypilot.org/calendar-control-height-and-business-hours-heightspec.html
Let users know when they already have an event scheduled for a particular time
Answered: There are two possible approaches: 1. Check the new event against the database before saving it. For a simple scenario (i.e. no recurring events) you can use the same logic you use for selecting even...
How to show the different color for the different kind of activity
Answered: You can use BeforeEventRender event handler:
protected void DayPilotMonth1_BeforeEventRender(object sender, DayPilot.Web.Ui.Events.Month.BeforeEventRenderEventArgs e)
{
string status = (string)...
Is there a way to print a DayPilot Month, Calendar or Scheduler for MVC
Answered: Image export is not implemented for the MVC version yet. It might be available in the 7.2 release.
Date and Time
Answered: You will need to join these two fields in the select command: http://stackoverflow.com/questions/700619/how-to-combine-date-from-one-field-with-time-from-another-field-ms-sql-server But I would recom...
Howto use a theme
Answered: You need to to include the .css file:
<link type="text/css" href='Themes/scheduler_white.css' rel="stylesheet" />
Enable CssOnly and specify the class prefix:
<DayPilot:DayPilotScheduler ...
Detailsview without a SqlDataSource
Answered: You can use ObjectDataSource instead. See also: http://stackoverflow.com/questions/1735096/using-a-detailsview-without-sqldatasource Alternatively, you can replace DetailsView with individual control...
Popup Window
Answered: In the Lite version, the start, end, and column variables are not available in TimeRangeSelectedJavaScript. You need to use {0} and {1} strings: {0} will get replaced by the time range start and {1} ...