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

Updating when resources change

2 Answers 151 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 22 Jun 2010, 09:38 PM
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 Answers, 1 is accepted

Sort by
0
Jim
Top achievements
Rank 1
answered on 22 Jun 2010, 11:49 PM
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!
0
Accepted
Dobry Zranchev
Telerik team
answered on 28 Jun 2010, 01:56 PM
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
Tags
Scheduler and Reminder
Asked by
Jim
Top achievements
Rank 1
Answers by
Jim
Top achievements
Rank 1
Dobry Zranchev
Telerik team
Share this question
or