Home Unanswered Active Tags New Question

How to call a postback from dynamically generated calendars

I generate different calendars in runtime depending on the amount of employees on a table.
Is there a way i can do postback events on those generated calendars or i have to use JavaScript on them?
Asked by Rafael 4 years ago.
Replies
The actual problem is how do i know from which calendar(employee) is the selected free time from.
Comment posted by Rafael 4 years ago.
I think there should be no problem. If you generate a calendar dynamically, you also assign the event handler using something like

DayPilotCalendar1.TimeRangeSelected += new TimeRangeSelectedEventHandler(yourHandler);

Even if yourHandler method is the same for all calendar instances, you should always be able to detect it from sender parameter:
void yourHandler(object sender, TimeRangeSelectedEventArgs e)
{
DayPilotCalendar cal = (DayPilotCalendar) sender;
// your code here
}
Comment posted by Dan Letecky 4 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java