Calendar and server side integration

Can someone explain me if is possible query server to retrive only events on time slot current showed by calendar? The calendar datasource send some metadata as in grid pagination?

Thanks.

Yes, use the dateChanged() event to notice transitions between months and call DataSource.fetchData() directly, passing the start and end date as criteria, and pass the result to calendar.setData().

Can you explain me how retrive start and end day of current view (day, week, month) please.

getChosenDate() (please make better use of the docs)

Sorry, I look for “getChosenDate” on Beta7.0RC but I don’t found it.

I see in the calendar code that is not present a method named getChosenDate(), but I can access the information access directly to member “chosenDate”. The result is the current date of calendat, but what I look for is a range of date (start-end) of current calendar view.

Using code inspection I finally found what I looks for:
If dayView is selected can be use:
<calendar id>.chosenDate –> current day of dayView
If weekView is selected can be use:
<calendar id>.chosenWeekStart –> date of start of current weekView
<calendar id>.chosenWeekEnd –> date of end of current weekView
If monthViewSelected is selected can be use:
<calendar id>.chosenDate –> current day of monthViewSelected –> current mont of monthViewSelected

I report my solution for benefit of forum’s memebers.
This feature are not usally accessible and not documentated.

Isomorphic can confirm me or tell me a better solution ?
Thanks.

Using chosenDate (which is documented) works for all 3 purposes (it’s easy to determine the week given a Date). However, if you are using the month view, we recommend loading data at month boundaries because then the user does not need to load data when switching to the month view, or when moving between days/weeks.