Binding error when using grouping in xaml

2 posts, 0 answers
  1. Marcin
    Marcin avatar
    187 posts
    Member since:
    Jan 2011

    Posted 16 Jul 2013 Link to this post

    Hello
    I have strange "error" when using column grouping in xaml. The grouping is working, and I cannot find any issue with that however I don't like having binding errors in output window because that means that something is wrong.

    I have flowing column:
    <telerik:GridViewDataColumn Header="Device Type" Width="Auto" DataMemberBinding="{Binding Path=DeviceTypeDescription}" UniqueName="DeviceTypeDescription" />
     and following group description:
    <telerik:RadGridView.GroupDescriptors>
    <telerik:ColumnGroupDescriptor Column="{Binding Columns[\DeviceTypeDescription\], ElementName=GridView}" SortDirection="Ascending" />
    </telerik:RadGridView.GroupDescriptors>
    However during application start I can see following error:

    System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=Columns[DeviceTypeDescription]; DataItem=null; target element is 'ColumnGroupDescriptor' (HashCode=36687163); target property is 'Column' (type 'GridViewColumn')

    When I go to the tab where grid is, grouping is working properly. Just for information. Data for taht grid is loaded only when I open tab not during application start.

    Regards

  2. Vera
    Admin
    Vera avatar
    265 posts

    Posted 19 Jul 2013 Link to this post

    Hi Marcin,


    I have tested your case with our latest version and the error did not appear. May I ask to download our next Internal Build expected on Monday and to give it a try?

    Let us know in case you still experience the problem.

    Regards,
    Vera
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top