Hello,
I was trying to build up the DataTemplate for the HierarchyChildTemplate in my code.
As example the one from the online documentation http://www.telerik.com/help/wpf/gridview-how-to-access-child-gridview.html
I tried something like:
But i set the dataType in that constructor and not same property like in the xaml. What's the property i need to set?
Thanks.
I was trying to build up the DataTemplate for the HierarchyChildTemplate in my code.
As example the one from the online documentation http://www.telerik.com/help/wpf/gridview-how-to-access-child-gridview.html
<
telerik:RadGridView
Name
=
"gridView"
ItemsSource
=
"{Binding Person}"
>
<
telerik:RadGridView.ChildTableDefinitions
>
<
telerik:GridViewTableDefinition
/>
</
telerik:RadGridView.ChildTableDefinitions
>
<
telerik:RadGridView.HierarchyChildTemplate
>
<
DataTemplate
>
<
telerik:RadGridView
ItemsSource
=
"{Binding Children}"
Name
=
"childGrid"
ShowGroupPanel
=
"False"
/>
</
DataTemplate
>
</
telerik:RadGridView.HierarchyChildTemplate
>
</
telerik:RadGridView
>
I tried something like:
gridView.HierarchyChildTemplate =
new
DataTemplate(
new
RadGridView
{
ShowGroupPanel =
false
,
IsReadOnly =
true
,
ItemsSource =
new
Binding(
"Children"
)
});
But i set the dataType in that constructor and not same property like in the xaml. What's the property i need to set?
Thanks.