This question is locked. New answers and comments are not allowed.
Hi,
I try and databind both resources and GroupDescriptionsSource to a ViewModel and two observable collections. The resources are created at runtime, since it depends on the appointments which is included. I then have a dropdown list to decide which resource the timelineview should be grouped by.
When i add into the GroupResourceSource collection, the scheduler get updated with correct grouping. However instead of showing IResource.DisplayName, it displays a text: MS.Internal.CollectionViewGroupInternal. See image.
Best Regards
Kjell Erik Reed Anda
I try and databind both resources and GroupDescriptionsSource to a ViewModel and two observable collections. The resources are created at runtime, since it depends on the appointments which is included. I then have a dropdown list to decide which resource the timelineview should be grouped by.
<telerikSchedulerView:RadScheduleView HorizontalAlignment="Stretch" VerticalAlignment="Stretch" AppointmentsSource="{Binding Sections}" x:Name="radScheduler" ResourceTypesSource="{Binding SchedulerResourcesType}" SelectedAppointment="{Binding SelectedAppointmentItem, Mode=TwoWay}" GroupDescriptionsSource="{Binding GroupResourceSource, Mode=TwoWay}" SelectedSlot="{Binding SelectedTimeSlot}" > <telerikSchedulerView:RadScheduleView.ViewDefinitions> <telerikSchedulerView:TimelineViewDefinition x:Name="timelineViewDefinition" VisibleDays="{Binding VisibleDays, Mode=TwoWay}" SmallChangeInterval="{Binding SmallChangeInterval}" LargeChangeInterval="{Binding LargeChangeInterval}" GroupFilter="{Binding GroupFilter}" /> </telerikSchedulerView:RadScheduleView.ViewDefinitions></telerikSchedulerView:RadScheduleView><radControl:RadComboBox SelectedItem="{Binding SelectedGroupBy, Mode=TwoWay}" ItemsSource="{Binding SchedulerResourcesType, Mode=TwoWay}" DisplayMemberPath="Name" Style="{StaticResource radComboStyle}" > <radControl:RadComboBox.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel></VirtualizingStackPanel> </ItemsPanelTemplate> </radControl:RadComboBox.ItemsPanel> </radControl:RadComboBox>public GroupDescriptionCollection GroupResourceSource { get; set; }public AddRangeObservableCollection<ResourceType> SchedulerResourcesType { get; set; }public ResourceType SelectedGroupBy { get { return selectedGroupBy; } set { if (selectedGroupBy != value) { selectedGroupBy = value; //GroupResourceSource.Clear(); var resoureGroup = new ResourceGroupDescription() { ResourceType = value.Name, ShowNullGroup=false }; resoureGroup = view.CreateGroupNames(resoureGroup); GroupResourceSource.Add(resoureGroup); } } }When i add into the GroupResourceSource collection, the scheduler get updated with correct grouping. However instead of showing IResource.DisplayName, it displays a text: MS.Internal.CollectionViewGroupInternal. See image.
Best Regards
Kjell Erik Reed Anda