Refreshing Appointments in View

3 posts, 0 answers
  1. RachelThornton
    RachelThornton avatar
    4 posts
    Member since:
    Dec 2010

    Posted 30 Jun 2011 Link to this post

    I need to be able to refresh the appointments in my scheduler periodically or on demand. I am Data Binding to a collection in a repository class which has an Appointments property. When I make changes to the Appointments collection in the custom repository class, how can I force the scheduler to pick up this new data and re-draw?
  2. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 05 Jul 2011 Link to this post

    Hi Rachelthornton,

    Thank you for your question.

    You shoyuld not need to manually call refresh of appointments when your collection is changed. If your collection implements INotifyCollectionChanged and your items implement INotifyPropertyChanged, the changes should be reflected automatically. You can check this help article: Binding to Business Objects.

    In case you need to rebind the scheduler, you can call its DataBind() method:
    radScheduler1.DataBind();

    I hope this was helpful. In case you need further assistance, do not hesitate to ask here or open a new support ticket.

    Regards,
    Ivan Todorov
    the Telerik team
    Registration for Q2 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting July 18th and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. UI for WinForms is Visual Studio 2017 Ready
  4. RachelThornton
    RachelThornton avatar
    4 posts
    Member since:
    Dec 2010

    Posted 05 Jul 2011 Link to this post

    Ah thanks. I was using a normal List rather than a BindingList to hold the Appointments in my repository class.
Back to Top