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

Refresh radscheduler with Data

2 Answers 220 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Kerry
Top achievements
Rank 1
Kerry asked on 03 Oct 2013, 08:35 PM
Hello,

I have a radscheduler that uses a schedulerBindingDatasource, tableadapter and designtime dataset, the scheduler is populated during form load with a tableadaper.fill() method and any changes (Adds,Updates, Deletes) are applied to the table adapter on the FormClosing event however if changes are made to the database table (for instance from another users) I'd like those changes to be reflected immediately on the scheduler without having to close and reopen the scheduler.  I added a refresh button and called methods.... radscheduler1.Refresh(),  radScheduler1.DataBind() , schedulerBindingDataSource1.Rebind(); but the scheduler will not repopulate with the changed data.  How do I refresh a scheduler without having to close and repopen.  Using framework 3.5 scheduler version 2012.1.321.20

Regards,

Kerry

2 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 08 Oct 2013, 12:22 PM
Hi Kerry,

Thank you for writing.

You need to call the Fill method of the table adapter and pass the collection which you need to re-fill, in this case the appointments. This will cause the data to be refreshed. Refer to the sample code below:
void refreshBtn_Click(object sender, EventArgs e)
{
    this.appointmentsTableAdapter.Fill(this.schedulerDataDataSet.Appointments);
}

If you need any further assistance, please let me know.

Regards,
George
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Kerry
Top achievements
Rank 1
answered on 09 Oct 2013, 12:28 PM
perfect...thank you.
Tags
Scheduler and Reminder
Asked by
Kerry
Top achievements
Rank 1
Answers by
George
Telerik team
Kerry
Top achievements
Rank 1
Share this question
or