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

Binding error when using grouping in xaml

1 Answer 112 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Veteran
Marcin asked on 16 Jul 2013, 12:34 PM
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

1 Answer, 1 is accepted

Sort by
0
Vera
Telerik team
answered on 19 Jul 2013, 01:11 PM
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 >>
Tags
GridView
Asked by
Marcin
Top achievements
Rank 1
Veteran
Answers by
Vera
Telerik team
Share this question
or