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

how to change SelfHierarchySettings Maximumdepth value in code behind dynamically for telerik grid

3 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sudhakar
Top achievements
Rank 1
Sudhakar asked on 29 Aug 2013, 09:02 AM
If give my depth as static in aspx page it`s working fine.
<SelfHierarchySettings ParentKeyName="XXXXXXXXXX" KeyName="XXXXXXXX" MaximumDepth="5"/>

But when i try to change this dyanmically in .cs page it`s not working.
In which event i have to write the following code?
grdView.MasterTableView.SelfHierarchySettings.MaximumDepth = Convert.ToInt32(txt_DepNo.Text);

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 03 Sep 2013, 10:08 AM
Hello Sudhakar,

Please note that the self-referencing grid structure is obsolete and we highly suggest using RadTreeList in this scenario - it is optimized for this type of data presentation:
http://demos.telerik.com/aspnet-ajax/treelist/examples/overview/defaultcs.aspx

It supports paging, sorting, filtering, as well as CRUD operations, selecting, etc.

Hope this helps.

Regards,
Eyup
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Sudhakar
Top achievements
Rank 1
answered on 13 Sep 2013, 05:21 AM
Hi Eyup,

            I started using Tree List..
  1.       How to set depth maximum depth level, i can found only the Expand level as property ?
  2.       How to set filter ?
0
Eyup
Telerik team
answered on 18 Sep 2013, 08:46 AM
Hi Sudhakar,

I am afraid it is difficult to figure out your first requirement. Can you please elaborate on your specific scenario?

You can use RadFilter to implement filtering functionality for RadTreeList:
http://demos.telerik.com/aspnet-ajax/treelist/examples/integration/filteringwithradfilter/defaultcs.aspx?product=treelist

I hope this will prove helpful.

Regards,
Eyup
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Sudhakar
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Sudhakar
Top achievements
Rank 1
Share this question
or