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

Binding TasksSource To CompositeCollection

1 Answer 98 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Helmut
Top achievements
Rank 1
Helmut asked on 20 Jun 2016, 08:14 AM

Hello,

when I bind the TaskSource of the RadGanttView (WPF) to a CompositeCollection I get the Exception "Object of Type System.Windows.Data.CollectionContainer cannot be converted to Type IGanttTask". With the RadTreeView it works. All Items in the Collections implements IGanttTask.

<CompositeCollection x:Key="ProjectChildCollection"><br>               
<CollectionContainer Collection="{Binding DataContext.SelectedProject.ProjectActions, Source={x:Reference control}}" /><br>               
<CollectionContainer Collection="{Binding DataContext.SelectedProject.Tasks, Source={x:Reference control}}" /><br>               
<CollectionContainer Collection="{Binding DataContext.SelectedProject.ResourceBookings, Source={x:Reference control}}" /><br>           
</CompositeCollection>

 

TasksSource="{Binding Source={StaticResource ProjectChildCollection}}"

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 22 Jun 2016, 07:46 AM
Hi Helmut,

In its current implementation RadGanttView does not support binding the TasksSource to CompositeCollection. You could log this as a feature request in our Feedback Portal. We will review the item and we will consider it for implementation.

Hope this information will be helpful for you.

Regards,
Nasko
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GanttView
Asked by
Helmut
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or