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

How to Refresh ScheduleView when clearing and re-adding to ResourceType.Resources

6 Answers 327 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Rod Yager
Top achievements
Rank 1
Rod Yager asked on 20 Dec 2010, 11:09 PM
If I update the Resources for my ResourceType, the view only changes if I flip from one ViewDefinition to another and back again. How can I have the view update with the new resources without having to toggle the active view?

Thanks,
Rod

6 Answers, 1 is accepted

Sort by
0
Teodor
Telerik team
answered on 23 Dec 2010, 04:48 PM
Hello Rod Yager,

Thank you for contacting us.

This appears to be a bug in the current version of RadScheduleView. What we can suggest you for now is to refresh the view by code after you add a Resource to a particular ResourceType. Below is a possible solution:

var groupDescriptionsSource = this.scheduleView.GroupDescriptionsSource;
this.scheduleView.ClearValue(RadScheduleView.GroupDescriptionsSourceProperty);
this.scheduleView.SetValue(RadScheduleView.GroupDescriptionsSourceProperty, groupDescriptionsSource);

We will fix this in one of the releases to come. Thank you for the involvement!

Greetings,
Teodor
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Troy
Top achievements
Rank 1
answered on 08 Nov 2011, 05:07 AM
This fix seemed to work fine for the Q1 2011 release but appears to be broken now in the Q2 2011 release. If I remove/add resources the original group descriptions are still shown.
0
Rosi
Telerik team
answered on 08 Nov 2011, 05:18 PM
Hello Troy,

To update the groups I suggest you add/remove the whole ResourceType ,not only some of its resources.

Best wishes,
Rosi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Troy
Top achievements
Rank 1
answered on 09 Nov 2011, 03:18 AM
I have tried both removing then adding the resource type as well as clearing and setting the ResourceTypesSource property on the schedule view directly without any luck.
0
Troy
Top achievements
Rank 1
answered on 09 Nov 2011, 04:33 AM
I have found the culprit but I don't yet know how to fix the issue. I am setting the GroupHeaderContentTemplateSelector property. When I do not set that property things seem to work fine. However, I will state again that this worked perfectly in the previous release.
0
Rosi
Telerik team
answered on 09 Nov 2011, 09:07 AM
Hi Troy,

I suggest you open a support ticket and send us sample running project illustrating the issue. We will review it and provide you with more details.


Regards,
Rosi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
ScheduleView
Asked by
Rod Yager
Top achievements
Rank 1
Answers by
Teodor
Telerik team
Troy
Top achievements
Rank 1
Rosi
Telerik team
Share this question
or