Scheduler and Table Adapters

5 posts, 0 answers
  1. Karl
    Karl avatar
    172 posts
    Member since:
    Jun 2009

    Posted 10 Jan 2012 Link to this post

    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

  2. Karl
    Karl avatar
    172 posts
    Member since:
    Jun 2009

    Posted 12 Jan 2012 Link to this post

    Hi,
    Are TableAdapters the recommended way to update appointments?

    Thanks
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 13 Jan 2012 Link to this post

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

  5. Karl
    Karl avatar
    172 posts
    Member since:
    Jun 2009

    Posted 13 Jan 2012 Link to this post

    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
  6. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 17 Jan 2012 Link to this post

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

Back to Top
UI for WinForms is Visual Studio 2017 Ready