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

Hierarchy Grid problem

1 Answer 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vahid
Top achievements
Rank 1
Vahid asked on 02 Apr 2012, 07:05 AM
Hi there.
I've used Rad grid in my project and I have a problem with Hierarchical grid.
I have 3 hierarchies in my grid like this:

level-1
--------Level-2
-----------------Level-3

so as I read this link: http://demos.telerik.com/aspnet-ajax/grid/examples/programming/detailtabledatabind/defaultcs.aspx
all of data will be bind once.
I want to bind my SP by click
for instance I have my Level-1 which is bind in form_Load.
after clicking on + I want to fire my second SP to expand Level-2.
and after click on + in Level-2,I want to fire 3rd SP to expand Level-3.
I don't want to bind all of SPs once (I mean in form_load).
any idea?

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 05 Apr 2012, 11:27 AM
Hi Vahid,

I would recommend you to do the initial binding on NeedDataSource, not on Form_Load. Also, if you keep the HierarchyLoadMode of all GridTableViews to ServerOnDemand, the DetailTableDataBind event will fire for each expanded item.

Kind regards,
Tsvetina
the Telerik team
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 their blog feed now.
Tags
Grid
Asked by
Vahid
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or