We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Expand one record at a time with dynamically generated child table in Grid Grouping Control

Thread ID:





105158 Sep 12,2012 03:22 PM UTC Sep 13,2012 05:06 AM UTC ASP.NET Web Forms (Classic) 1
Tags: GridGroupingControl
Asked On September 12, 2012 03:22 PM UTC


I've a requirement to load data in child table at runtime, so I used "OnRecordExpanded" event to populate child table. So far, Grid Grouping Control displays data as expected. However, when I click to expand next record, data on previously expanded record wipes out, which is ok, but the record remains expanded. I am just looking for a way to control the behavior, so the previous record can be collapsed every time when I click on next record. I would also like to have functionality to collapse the parent record itself or just the child table when I click on "-" sign. 

I tried to implement "OnRecordCollapsed" event, however, it doesn't work as expected because child tables are populated dynamically. 

For now, I've that working by using "GridGroupingControl1.Table.CollapseAllRecords();" method call on Page_Load. So, every time all the records get collapsed but the one selected.

Any better way of doing this?

Bala Murugan A.S [Syncfusion]
Replied On September 13, 2012 05:06 AM UTC

Hi TD,

Thanks for using Syncfusion Products.

The better way of collapsing records is to use CollapseAllRecords() mehtod in Page_Load event so you can use that for your requirement.

Please let us know if you have any concerns.

Bala Murugan A.S


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon