Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Scheduler and Reminder > Scheduler and Table Adapters

Not answered Scheduler and Table Adapters

Feed from this thread
  • Karl Master avatar

    Posted on Jan 10, 2012 (permalink)

    Hi,

    Do you have to use TableAdapters to update appointments in the Scheduler. I’m using the BindingList and the customappointment example but it seems I have to use a table adapter are the any clear examples of how to add and update records. I seem to be going in circles looking at different examples on the site and the demo project.
    Thanks

    Reply

  • Karl Master avatar

    Posted on Jan 12, 2012 (permalink)

    Hi,
    Are TableAdapters the recommended way to update appointments?

    Thanks

    Reply

  • Ivan Todorov Ivan Todorov admin's avatar

    Posted on Jan 13, 2012 (permalink)

    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).

    Reply

  • Karl Master avatar

    Posted on Jan 13, 2012 (permalink)

    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

    Reply

  • Ivan Todorov Ivan Todorov admin's avatar

    Posted on Jan 17, 2012 (permalink)

    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).

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Scheduler and Reminder > Scheduler and Table Adapters
Related resources for "Scheduler and Table Adapters"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]