This is a migrated thread and some comments may be shown as answers.

Setting MaximumDepth Property for Self Referencing Grid

1 Answer 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Meena
Top achievements
Rank 1
Meena asked on 10 Jul 2008, 03:35 PM
Hi,
   I am trying to use "MaximumDepth" property for Self Referencing Hierarchy and it doesn't work. 
  I tried to set the value in ASPX and also in code(On Page Init/Load). Both ways it doesn't work.All the levels gets displayed
Code:

grdPerson.MasterTableView.SelfHierarchySettings.MaximumDepth = 1


 ASPX:

<radG:RadGrid ID="grdPerson" runat="server" Skin="" Width= "1000px" GridLines="None" ShowHeader="true">

<MasterTableView HierarchyDefaultExpanded="False" HierarchyLoadMode="Client" DataKeyNames= "PersonID,SupervisorID" Width="100%" AutoGenerateColumns="False" HorizontalAlign="Right">

<SelfHierarchySettings ParentKeyName="SupervisorID" KeyName="PersonID" MaximumDepth="1"/>




Thanks
Meena


1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 11 Jul 2008, 08:56 AM
Hello Meena,

We will see into the matter with this issue. Thank you for the observation. For now, you will need to manually hide your hierarchy based on the MaximumDepth value.

Kind regards,
Veli
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Meena
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or