Updating when resources change

3 posts, 1 answers
  1. revox
    revox avatar
    26 posts
    Member since:
    May 2010

    Posted 22 Jun 2010 Link to this post

    I'm programming a radscheduler that has its resource collection change upon selection from a dropdown list. The problem I am having is to simply get the scheduler to update when the collection changes. I use code like the following.

    Me.RadScheduler1.Resources.BeginUpdate()
        
    Me.RadScheduler1.Resources.Clear()

    <rebuild resources collection, using Add method>
     
    RadScheduler1.Resources.EndUpdate()

    Is there something I'm supposed to do to get the scheduler to refresh? I've been stuck on this for too long. Any help you can offer is much appreciated.
  2. revox
    revox avatar
    26 posts
    Member since:
    May 2010

    Posted 22 Jun 2010 Link to this post

    I've found a work-around that forces a repaint of the scheduler, hence showing the updated resources. In the selected-index-changed event handler for the dropdown, after changing the resource collection, I just do the following. It forces a repaint.

    Me.RadScheduler1.GetDayView.ResourcesPerView = 3
    Me.RadScheduler1.GetDayView.ResourcesPerView = 2

    I don't mind doing this, but I would like to know the "right way." Thanks!
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Answer
    Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 28 Jun 2010 Link to this post

    Hi Jim Benson,

    Thank you for feedback - we managed to reproduce this issue. For now you can use your work around until we provide a fix, which will appear in next official release in mid July. You can track the status of this issue in the PITS: 2517. Your Telerik points have also been updated for the report.

    If you have other questions feel free to contact us.
     

    Sincerely yours,
    Dobry Zranchev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top