Hi
I am implementing self reference hierarchy and i have used the code below which works fine for default columns.
I have a problem when I add dynamic columns columns are showing at rool level but does not get added at child node level. If you notice in the screenshot RolePermissions[0], RolePermissions[1], RolePermissions[2] are dynamic columns. I have attached the screenshot. Is there a simple way to fix it please suggest.
Regards
Kiran
I am implementing self reference hierarchy and i have used the code below which works fine for default columns.
<telerik:RadGridView x:Name=
"RadGridView1"
DataLoading=
"RadGridView1_DataLoading"
RowLoaded=
"RadGridView1_RowLoaded"
GridLinesVisibility=
"Horizontal"
CanUserFreezeColumns=
"False"
IsReadOnly=
"True"
AutoGenerateColumns=
"False"
Margin=
"10"
>
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding=
"{Binding TaskId}"
/>
<telerik:GridViewDataColumn Header=
"Task Name"
DataMemberBinding=
"{Binding TaskName}"
/>
<telerik:GridViewDataColumn Header=
"Read"
>
<telerik:GridViewColumn.CellTemplate>
<DataTemplate>
<CheckBox x:Name=
"checkBoxRead"
IsChecked=
"{Binding Read}"
/>
</DataTemplate>
</telerik:GridViewColumn.CellTemplate>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn Header=
"Write"
>
<telerik:GridViewColumn.CellTemplate>
<DataTemplate>
<CheckBox x:Name=
"checkBoxWrite"
IsChecked=
"{Binding Write}"
/>
</DataTemplate>
</telerik:GridViewColumn.CellTemplate>
</telerik:GridViewDataColumn>
</telerik:RadGridView.Columns>
<telerik:RadGridView.FilterDescriptors>
<telerik:FilterDescriptor Member=
"ParentTaskId"
Operator=
"IsEqualTo"
Value=
"0"
/>
</telerik:RadGridView.FilterDescriptors>
<telerik:RadGridView.ChildTableDefinitions>
<telerik:GridViewTableDefinition>
<telerik:GridViewTableDefinition.Relation >
<telerik:TableRelation IsSelfReference=
"True"
>
<telerik:TableRelation.FieldNames>
<telerik:FieldDescriptorNamePair
ParentFieldDescriptorName=
"TaskId"
ChildFieldDescriptorName=
"ParentTaskId"
/>
</telerik:TableRelation.FieldNames>
</telerik:TableRelation>
</telerik:GridViewTableDefinition.Relation>
</telerik:GridViewTableDefinition>
</telerik:RadGridView.ChildTableDefinitions>
</telerik:RadGridView>
I have a problem when I add dynamic columns columns are showing at rool level but does not get added at child node level. If you notice in the screenshot RolePermissions[0], RolePermissions[1], RolePermissions[2] are dynamic columns. I have attached the screenshot. Is there a simple way to fix it please suggest.
Regards
Kiran