search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

DayPilot Scheduler - Scheduling

Asked by Stephanie
5 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 Stephanie
5 years ago.


Answer posted by Dan Letecky [DayPilot]
5 years ago.

The resource id is available in "resource" variable in TimeRangeSelectedJavaScript:

  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 3 months old and has been closed. Please create a new question if you have anything to add.