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

scheduler binding data source update

4 Answers 250 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Sina
Top achievements
Rank 1
Sina asked on 04 Oct 2017, 08:04 AM

hi ,

I want my binding data source to update or refresh after adding a new record to the database.When I add one it won't update till closing and re-opening the form.

4 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 04 Oct 2017, 09:11 AM
Sina,

Thank you for writing.

RadScheduler will not update when your database changes unless your binding source gets updated and raises the ListChanged notification. You can refer to the following threads for additional information on how you can notify your application when the database changes: 
I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Sina
Top achievements
Rank 1
answered on 05 Oct 2017, 10:33 AM

hi, Histro,

My question is how to notify the scheduler to get the new data, not knowing when the data updated.I know when the data updates and after that, I want to force my to go and get the new record.

Hope you Understand.

Regards

0
Hristo
Telerik team
answered on 06 Oct 2017, 01:18 PM
Sina,

Thank you for writing back.

You do not have to notify the scheduler control explicitly. Your data source object should notify it. As long as it raises the ListChanged notification the control will update the collection of elements it is displaying. 

If for some reason you have updated data locally and your data source object has not raised the notification, you can use the SchedulerBindingDataSource.Rebind method. You can refer to the following section of the documentation for detailed information about the various ways to bind the control: http://docs.telerik.com/devtools/winforms/scheduler/data-binding/introduction.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Sina
Top achievements
Rank 1
answered on 07 Oct 2017, 06:34 AM

Hello again  :)

Rebind didn't work for my case, but this worked:

  •    this.(tableName)TableAdapter.Fill(this.(databaseName)DataSet.(TableName);

thanks alot

Tags
Scheduler and Reminder
Asked by
Sina
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Sina
Top achievements
Rank 1
Share this question
or