Field Chooser in nested tables

Hello,

i want to use the Field Chooser on nested tables.
Currently i am using it for the parent table of the grid and it is working fine.
But how can i make it work for the nested child tables?

1 Reply

DY Deivaselvan Y Syncfusion Team October 15, 2018 06:09 PM UTC

Hi Jignesh, 

Thank you for contacting Syncfusion support.

 
We have analyzed your query “To show ColumnChooser for nested tables” and you can achieve your requirement by passing child grid as parameter for ColumnChooserPopup as like below code snippet 
 
//Child Grids will be available in DetailsViewDefinitions.  
//So in order to show ColumnChooser, you must pass the child grid for which you want to show column chooser 
//In DetailsViewDefinition[0] , 0 defines first level of grid. 
ColumnChooserPopup childColumnChooser = new ColumnChooserPopup(this.sfDataGrid1.DetailsViewDefinitions[0].DataGrid); 
childColumnChooser.Show(); 
 
Also, please find sample for the same from below link and let us know if this helps you. 
Sample Link : 
 
Refer the below documentation links for more details 
 
Please let us know if you have any other questions. 
 
Regards, 
Deivaselvan 


Loader.
Up arrow icon