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

Data for the view date range.

Asked by ZB
11 years ago.

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.

Comment posted by Dan Letecky
11 years ago.

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).

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.