Refresh radscheduler with Data

3 posts, 0 answers
  1. Kerry
    Kerry avatar
    61 posts
    Member since:
    Nov 2008

    Posted 03 Oct 2013 Link to this post

    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. George
    Admin
    George avatar
    500 posts

    Posted 08 Oct 2013 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Kerry
    Kerry avatar
    61 posts
    Member since:
    Nov 2008

    Posted 09 Oct 2013 Link to this post

    perfect...thank you.
Back to Top