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

Detail Grid Popupating

1 Answer 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Deyan
Top achievements
Rank 1
Deyan asked on 25 Jan 2011, 01:35 PM
Hi,
I Have a radgrid with master and detail table.
Each table has sqldatasource populating data from stored procedure.
A note with sqlprofiler that when I expand first time 1 row from master table
the stored procedure that populate details grid is called n times that n is number of rows in master table.
After that everything is OK. When I expand one row, stored procedure is called once. The master  and details grid has 1 column with Aggregate="Sum".
My question is how can i prevent this first load time madness? 

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 28 Jan 2011, 11:21 AM
Hello Deyan,

RadGrid has different hierarchy load modes that control the binding of the master and detail table. You can have a look at this help article for more detailed information when to use each of them.
If you still need more control over the binding of the detail table you can use the DetailTableDataBind event to manually determine when to bind the detail table.

Regards,
Marin
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Deyan
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or