Home Unanswered Active Tags New Question

Data for the view date range.

I am evaluating this product for a project.

When the calendar is loaded or when user changes/drills intothe view, how can I get the date range so I limit my result set from database for that date range?

In other words, what events are fired when such events are raised and how can I get the client date range?

Thanks.

Asked by ZB 3 years ago.
Replies

All the main controls (Calendar, Scheduler, Month) require that you change the visible date range in the code explicitly using StartDate and Days properties. A typical example is the Command event fired automatically by the Navigator control (see also Demo/Calendar/Default.aspx.cs, line 282 in the DayPilot package). That means you should be aware of any changes. You can use these properties (StartDate, Days) to set the limits to your SQL query.

The only exception is the Dynamic Scheduler control, which loads the data dynamically during scrolling. After each scroll position change, a Scroll event handler is fired. All the information about the visible area are available in ViewPort property (e.g. DynamicScheduler1.ViewPort.Start, DynamicScheduler1.ViewPort.End).

Comment posted by Dan Letecky 3 years ago.
New Reply
This reply is
Your name (optional):

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