Expand groups after apply filter

Hello,

Can someone tell me how to expand results after apply a filter to gridgroupingcontol? When i load the control with a datasource the expand is made by code. But when i aplly a filter, in one of the columns, the results don't appear expanded.

Attachment: Results_3b98e880.rar

1 Reply 1 reply marked as answer

AR Arulpriya Ramalingam Syncfusion Team October 20, 2020 07:10 PM UTC

Hi Jorge, 
 
Thank you for using Syncfusion products. 
 
The CategorizedRecords event for the GridGroupingControl will be triggered whenever the records in the UI is changed through filtering. To expand all the groups after filtering is added for the grid, we could suggest that you to use ExpandAllGroups() method in CategorizedRecords event. Please make use of the below code example for further reference. 
 
Example code 
 
//Event subscription 
gridGroupingControl1.CategorizedRecords += GridGroupingControl1_CategorizedRecords; 
 
//Event customization 
private void GridGroupingControl1_CategorizedRecords(object sender, TableEventArgs e) 
{ 
    this.gridGroupingControl1.Table.ExpandAllGroups(); 
    //this.gridGroupingControl1.Table.ExpandAllRecords(); 
} 
 
Please get back to us, if you need any further assistance. 
 
Regards, 
Arulpriya 


Marked as answer
Loader.
Up arrow icon