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

Refreshing Appointments in View

2 Answers 51 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
RachelThornton
Top achievements
Rank 1
RachelThornton asked on 30 Jun 2011, 08:31 AM
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 Answers, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 05 Jul 2011, 08:25 AM
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!
0
RachelThornton
Top achievements
Rank 1
answered on 05 Jul 2011, 12:29 PM
Ah thanks. I was using a normal List rather than a BindingList to hold the Appointments in my repository class.
Tags
Scheduler and Reminder
Asked by
RachelThornton
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
RachelThornton
Top achievements
Rank 1
Share this question
or