scheduler binding data source update

5 posts, 0 answers
  1. Sina
    Sina avatar
    6 posts
    Member since:
    Aug 2017

    Posted 04 Oct Link to this post

    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.

  2. Hristo
    Admin
    Hristo avatar
    1028 posts

    Posted 04 Oct Link to this post

    Hi 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.
  3. Sina
    Sina avatar
    6 posts
    Member since:
    Aug 2017

    Posted 05 Oct in reply to Hristo Link to this post

    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 scheduler to go and get the new record.

    Hope you Understand.

    Regards

  4. Hristo
    Admin
    Hristo avatar
    1028 posts

    Posted 06 Oct Link to this post

    Hi 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.
  5. Sina
    Sina avatar
    6 posts
    Member since:
    Aug 2017

    Posted 07 Oct in reply to Hristo Link to this post

    Hello again histro :)

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

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

    thanks alot

Back to Top