DayPilot Scheduler - Scheduling
Asked by Stephanie9 years ago.
I am using the scheduler and would like to allow clients to click on a time and schedule for that time and location (resource). I have the time working fine, but how would I get the information for what resource/row they clicked on?
Comment posted by Stephanie9 years ago.
Answer posted by Dan Letecky [DayPilot]9 years ago.
The resource id is available in "resource" variable in TimeRangeSelectedJavaScript:
<DayPilot:DayPilotScheduler
TimeRangeSelectedHandling="JavaScript"
TimeRangeSelectedJavaScript="console.log(start + ' ' + end + ' ' + resource);"
In the server-side event handler (TimeRangeSelected) it's available as e.Resource:
protected void DayPilotScheduler1_TimeRangeSelected(object sender, DayPilot.Web.Ui.Events.TimeRangeSelectedEventArgs e)
{
DateTime start = e.Start;
DateTime end = e.End;
string resource = e.Resource;
}
This question is more than 1 month old and has been closed. Please create a new question if you have anything to add.