Hi,
I am using the PropertyRelation on the RadgridView like so:
<Telerik:RadGridView.ChildTableDefinitions>
<Telerik:GridViewTableDefinition x:Name="gvtd">
<Telerik:GridViewTableDefinition.Relation >
<telerikData:PropertyRelation ParentPropertyName="MyProperty"/>
</Telerik:GridViewTableDefinition.Relation>
</Telerik:GridViewTableDefinition>
</Telerik:RadGridView.ChildTableDefinitions>
Which works fine when it autogenerates the columns.. is there an example on how to user define the columns?
My futile tries involve:
AutoGenerateColoumns="False"
or
AutoGenerateFieldDescriptors
="False"
I have tried setting the FieldDescriptors manually.
Tried to use HierarchyChildTemplate like so:
<Telerik:RadGridView.HierarchyChildTemplate>
<DataTemplate>
<Telerik:RadGridView>
<Telerik:RadGridView.Columns>
<Telerik:GridViewDataColumn Header="ID" UniqueName="id"/>
<Telerik:GridViewDataColumn Header="FirstName" DataMemberBinding="{Binding Name}"/>
</Telerik:RadGridView.Columns>
</Telerik:RadGridView>
</DataTemplate>
</Telerik:RadGridView.HierarchyChildTemplate>
With the result of it loosing its binding and going back to the usercontrols dataContext.
- Martin