I have a problem with RadGrid in "SelfHierarchyMode".
My settings in aspx:
My datasource look like:
Key GroupKey Parent Description
1 A1 null A1
2 B1 A1 B1
3 B2 A1 B2
4 A2 null A2
5 B3 A2 B3
The Elements B1, B2 and B3 are shown on ClientSide under their parent Element AND direct under the root, so they were shown twice.
WHY????
My settings in aspx:
<
telerik:RadGrid
runat
=
"server"
ID
=
"rgArtikelSuche"
AllowSorting
=
"false"
AllowFilteringByColumn
=
"false"
AutoGenerateColumns
=
"false"
AllowMultiRowSelection
=
"true"
Visible
=
"false"
OnNeedDataSource
=
"rgArtikelSuche_NeedDataSource"
>
<
ClientSettings
AllowKeyboardNavigation
=
"true"
AllowExpandCollapse
=
"true"
>
<
Selecting
AllowRowSelect
=
"true"
UseClientSelectColumnOnly
=
"true"
/>
</
ClientSettings
>
<
MasterTableView
HierarchyLoadMode
=
"Client"
HierarchyDefaultExpanded
=
"true"
DataKeyNames
=
"Key, GroupKey"
>
<
SelfHierarchySettings
ParentKeyName
=
"Parent"
KeyName
=
"GroupKey"
/>
</
MasterTableView
>
</
telerik:RadGrid
>
My datasource look like:
Key GroupKey Parent Description
1 A1 null A1
2 B1 A1 B1
3 B2 A1 B2
4 A2 null A2
5 B3 A2 B3
The Elements B1, B2 and B3 are shown on ClientSide under their parent Element AND direct under the root, so they were shown twice.
WHY????