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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to load and bind schedule data on demand when the selected date/s changed?

Thread ID:

Created:

Updated:

Platform:

Replies:

72225 Mar 10,2008 09:54 AM UTC Apr 1,2008 11:16 AM UTC WinForms 3
loading
Tags: ScheduleControl
Risath
Asked On March 10, 2008 09:54 AM UTC

Hi everyone,

I want to load schedule data from database for a particular user on demand.
I should be able to load the data for a specific period based on the dates/s the user selects from the calendar of the schedule control.
Because the user has huge amount of schedule data assigned for him/her in the database and I'm not allowed to load them all say inside the Form_Load event time for performance and security reasons.

1. How can I trap the date changes of the calendar?
2. Where can I write the code to reload the items for the selected date/s and reassign the loaded new data to the data source and force the schedule control to show that new data?

Please give me some idea with sample code. This is urgent for me.

Thanks in advance.

Risath


Administrator [Syncfusion]
Replied On March 12, 2008 07:27 AM UTC

Hi,

Thank you for your interest in our products.
Please refer the follwing sample in the sample browser to imlement this behavoiur.
{install drive}\Documents and Settings\{username}\My Documents\Syncfusion\EssentialStudio\6.1.0.34\Windows\Schedule.Windows\Samples\2.0\ScheduleSampleWithRecurrences

This sample uses a ScheduleControl on a Form. It also has menu items that illustrates various properties and settings of the ScheduleControl. It loads a sample appointments file that holds some appointments. In addition, this data provider uses appointment objects that implement the IRecurringScheduleAppointment interface to allow you to use recurring appointments in the sample.

Kindly try this and let me know if this helps.
Regards,
Jisha


Anonymous
Replied On March 14, 2008 01:58 PM UTC

Here is a sample that has a DataProvider that uses DataTables with an MDB file data store. This provider will load the appointment data on demand. It does this by overriding the IScheduleAppointmentList GetSchedule method in the provider and loading only the appointments for the requested dates. There is a setting that turns on/off this OnDemandLoading. You do this by passing in true or false when you use the MDB_ScheduleDataProvider constructor to create the data provider. So, you could use this data provider to get the OnDemand loading.

If you have your own data provider, you could do something similar in an IScheduleAppointmentList GetSchedule override to load your data on demand.



ScheduleWithMDBsupport.zip

Risath
Replied On April 1, 2008 11:16 AM UTC

Thank you very much for the valuable replies.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;