We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to dynamically load data into the schedule control when month changes?

We are using the schedule control in a Windows Store app and are wondering how we might load data dynamically into the control as the user changes months.  We don't want to pull down all of the data for a couple of years if we don't have to.  Rather, I would have expected an event that fires when the user changes the dates that are currently in view. 

Is there a way to accomplish this?  Some event and/or property that returns the current date range?


3 Replies

JO Joy Oyiess Rex  K Syncfusion Team October 4, 2013 07:10 AM UTC

Hi Hoanh,

 

Thanks for your interest in Syncfusion Products.

 

We don’t have any direct support to listen  the  visible dates change while Navigation , but your requirement can be achieved by using the VisibleDates property of the SfSchedule. This is a property contains the visible dates collection of SfSchedule. This property gets changed while we navigate the view.

 

So when we bind the VisibleDates property of SfSchedule to a Local property in application, then local property gets changed when VisibleDates property gets changed. By listening to the local property we can perform required action.

We have created a simple sample for the same, please find the sample in the attachment.

Please let us know, if you need any further assistance.

 

Regards,

Joy Oyiess Rex K



SfScheduleSample_55c7a6aa.zip


HP Hoanh Phan October 4, 2013 11:33 PM UTC

Thank you -- that is helpful.  Did you notice, however, that the VisibleDates property is not updated when navigating backwards in time?  It works fine going forward month to month, but not backwards.  Is there a fix for that?



JO Joy Oyiess Rex  K Syncfusion Team October 7, 2013 11:43 AM UTC

Hi Hoanh,

We are able to reproduce the mentioned issue, we have confirmed that the issue with “VisibleDates property is not updated when navigating backwards” is a defect and we have logged a defect report. This fix will be included in our main release 4 which will be available in December 2013.

Please let us know, if you have any concerns.

Thanks,
Joy Oyiess Rex K

Loader.
Live Chat Icon For mobile
Up arrow icon