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

Export To Excel issue on a Master Child Grid data

1 Answer 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rajesh
Top achievements
Rank 1
Rajesh asked on 15 Aug 2011, 10:01 PM
Hi,

I have implemented a master child rad grid , where the child data for a particular row gets loaded only when user clicks on the uncollapse icon next to the mater data for a particular row.

Now when I am doing an export to excel via ItemCommand, i found that it also tries to load the child data by calling Childgrid_NeedDataSource before doing an export. Is there a way I can stop from doing that and only export the master data?

Note: I am having this issue only when I set IgnorePaging to true. Its works fine with IgnorePaging to false.

Any suggestions

-Rajesh

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 18 Aug 2011, 11:28 AM
Hello Rajesh,

The cause of the described behaviour is that when IgnorePaging is set to true, the grid is rebound.
You can prevent data-binding of the detail tables when it is not required by setting the HierarchyLoadMode to ServerOnDemand.

I hope this helps.

All the best,
Mira
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
Rajesh
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or