Binding TasksSource To CompositeCollection

2 posts, 0 answers
  1. Helmut
    Helmut avatar
    2 posts
    Member since:
    Jul 2010

    Posted 20 Jun 2016 Link to this post


    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>           


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

  2. Nasko
    Nasko avatar
    699 posts

    Posted 22 Jun 2016 Link to this post

    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.

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top