Binding TasksSource To CompositeCollection

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

    Posted 20 Jun Link to this post

    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}}"

  2. Nasko
    Admin
    Nasko avatar
    586 posts

    Posted 22 Jun 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.

    Regards,
    Nasko
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top