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

Loading multiple DetailTables in one load but displaying the second one when element on first detailtable is click

5 Answers 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
a.wilks
Top achievements
Rank 1
a.wilks asked on 19 Dec 2013, 12:44 PM

I would like to display a grid like in this example: http://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/programmatic-hierarchy/defaultcs.aspx.  In my case, I want to load both detailtables at the same time, but hide the second detailtable until the user clicks the first item.  I do not need to get the data from the second detailtable again, I want it to be all there after the original binding of the grid.

Is this possible?

5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 19 Dec 2013, 12:56 PM
Hi,

I'm not clear about your requirement. I guess you don't want the grid to be expanded at first but only on expand button click. From the demo, remove the code in the PreRender event of the radgrid. In the demo, in this event its coded to keep the first rows expanded. Also go through the Hierarchy load modes to define when the DataBind for GridTableView will occur. If I misunderstood your requirement, please elaborate.

Thanks,
Princy
0
a.wilks
Top achievements
Rank 1
answered on 19 Dec 2013, 01:44 PM
According to the demo, the user clicks on the item on the first detailtable and this event kicks of a query to load the second detailtable. I do not need to kick of the second query because the data for both detailtables came as part of the query that would have loaded the first detailtable. I am just trying to display the data in a more friendly way by splitting the information in two detailtables per item. I do not want to see the second detailtable until the user clicks the item on the first detailtable, I do not know how to load both detail tables at the time that I bind my data grid. I have 1 query that brings all the data I need, I just want to display it in two detailtables.
0
a.wilks
Top achievements
Rank 1
answered on 19 Dec 2013, 09:08 PM

Thank you Princy for the link to Hierarchy load modes.  It contains the information that I needed.

A.Wilks

0
a.wilks
Top achievements
Rank 1
answered on 02 Jan 2014, 11:28 PM

Open a new ticket for follow up question...

0
a.wilks
Top achievements
Rank 1
answered on 02 Jan 2014, 11:28 PM

Open a new ticket for follow up question...

Tags
Grid
Asked by
a.wilks
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
a.wilks
Top achievements
Rank 1
Share this question
or