This is a migrated thread and some comments may be shown as answers.

How to load a Scheduler Data from a Web Service call ?

1 Answer 152 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Fabien
Top achievements
Rank 1
Fabien asked on 05 Nov 2015, 10:41 AM

Hello,

I use Radscheduler and datas are loaded from a dataset that directly calls an Oracle database through the Oracle Client and it works well.

I need to replace this loading by a webservice call.

The first ​loading is ok and I have my appointments and all my other data but when I move an appointment, the change is not reflected in the datatable so I can not intercept these changes.

I use DataRowVersion.Original ​to get the previous version of the appointment but that does not work when datas are loaded from the webservice.
When data is loaded from the dataset methods it works correctly.

Everything works by loading the data using the methods of the dataset :

1.Me.ResourcesTableAdapter.CustomFill(...)
2.Me.AppointmentsResourcesTableAdapter.CustomFill(...)
3.Me.AppointmentsTableAdapter.CustomFill(...)


But it does not work by loading the data from the webservice (just replacing the loading calls)

1.Me.Planning.Merge(WebserviceCall(...))
2.Me.Planning.Merge(WebserviceCall(...))
3.Me.Planning.Merge(WebserviceCall(...))

Data load correctly and appointments appear good.
Moving an appointment is however not impacted on the datatable match.

 

For information : bindings ​are like that  : 

1.SchedulerBindingDataSource.EventProvider.AppointmentFactory = Me.RadScheduler1.AppointmentFactory
2.SchedulerBindingDataSource.EventProvider.DataSource = Me.Planning.Appointments
3.SchedulerBindingDataSource.ResourceProvider.DataSource = Me.Planning.Resources
4.Me.RadScheduler1.DataSource = Me.SchedulerBindingDataSource

Do you have an idea of the problem and how to solve it ?

Thank you.

Merci.

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 06 Nov 2015, 09:52 AM
Hello Fabien,

Thank you for writing.
 
When you populate RadScheduler by using a web service, it loads the extracted data initially. However, for any further changes you should handle the database update operation. It would be necessary to track any appointment changes and save the respective property values to the database. You can refer to the following help articles demonstrating sample approaches for updating the database: 
http://www.telerik.com/help/winforms/scheduler-data-binding-data-binding-walkthrough.html 
http://www.telerik.com/help/winforms/scheduler-data-binding-binding-to-entity-framework-and-telerik-data-access.html

I hope this information helps. Should you have further questions I would be glad to help.
 
Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Scheduler and Reminder
Asked by
Fabien
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or