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

Scheduler and Table Adapters

4 Answers 83 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 10 Jan 2012, 12:18 PM

4 Answers, 1 is accepted

Sort by
0
Karl
Top achievements
Rank 1
answered on 12 Jan 2012, 03:01 PM
Hi,
Are TableAdapters the recommended way to update appointments?

Thanks
0
Ivan Todorov
Telerik team
answered on 13 Jan 2012, 12:43 PM
Hello Karl,

Thank you for contacting us.

When you are using automatically generated table adapters, you can set the binding at design time without writing any code. This means that using table adapters is the easiest way to bind RadScheduler, but you are not limited to only using table adapters as a data source.

The following help article demonstrates using a BindingList as a data source: Binding to Business Objects. Generally, all you need to set in order to be able to bind RadScheduler to a list of custom objects, is the correct property mapping.

The following video shows how to bind RadScheduler with using data sets and table adapters at design time: Codeless Data Binding with RadScheduler for WinForms.

Please let me know if you experience further difficulties on this or if you have any additional questions.

Greetings,
Ivan Todorov
the Telerik team

SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

0
Karl
Top achievements
Rank 1
answered on 13 Jan 2012, 01:49 PM
Hi,

Thanks for the reply, I've got it to bind with out a problem, Just updating information when appointments change. ie if I resize etc or move, do I have to use TableAdapters to do all the updates?

Thanks
0
Ivan Todorov
Telerik team
answered on 17 Jan 2012, 11:48 AM
Hello Karl,

The automatically generated table adapters are useful for retrieving and storing information from a database, since they have automatically generated SQL commands for all CRUD operations. However, there is no scenario in which table adapters are obligatory.

I am not sure I completely understand your requirements, but generally, once bound, RadScheduler should automatically update the business objects that represent appointments. In order for RadScheduler to be able to reflect changes to the business objects automatically, the source collection must implement the  IBindingList interface and the business objects must implement the INotifyPropertyChanged interface.

I hope this information will help you. If you are still experiencing difficulties, you can send me more details on your concrete scenario and I will try to suggest you the best way to achieve it. You can also send me a sample project or some code snippets that demonstrate your current approach. This will let me get more quickly familiar with it and provide you with a better response.

All the best,
Ivan Todorov
the Telerik team

SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

Tags
Scheduler and Reminder
Asked by
Karl
Top achievements
Rank 1
Answers by
Karl
Top achievements
Rank 1
Ivan Todorov
Telerik team
Share this question
or