Hi,
I have a group header template and I want to find the ID of the the parent data context. In SL5, you can do this:
<TextBlock Text="{Binding DataContext.ID, RelativeSource={RelativeSource AncestorType=telerik:RadGridView}}"/>
When I put this as a celltemplate in the column in the grid, it is able to get the ID, however when it is put in the groupheadertemplate, it does not get the ID.
I know the it is being bound to is the GroupViewModel, but its namespace is: Telerik.Windows.Controls.GridView so you would think you would be able to get the ID of the DataContext the RadGridView is within.
Any one know a way around this?
Thanks,
Bryce
I have a group header template and I want to find the ID of the the parent data context. In SL5, you can do this:
<TextBlock Text="{Binding DataContext.ID, RelativeSource={RelativeSource AncestorType=telerik:RadGridView}}"/>
When I put this as a celltemplate in the column in the grid, it is able to get the ID, however when it is put in the groupheadertemplate, it does not get the ID.
I know the it is being bound to is the GroupViewModel, but its namespace is: Telerik.Windows.Controls.GridView so you would think you would be able to get the ID of the DataContext the RadGridView is within.
Any one know a way around this?
Thanks,
Bryce