Is there a way to reorder the chilld grid

Hello,

I am currently working on the syncfusion hierarchical grid and would like to know if there is a provision to reorder the child grid columns like how we reorder the header columns of the main grid. If there is a provision, could you kindly provide me with an example. 




Warm regards 

Vigneswaran

1 Reply 1 reply marked as answer

MS Manivel Sellamuthu Syncfusion Team February 11, 2021 07:13 AM UTC

Hi Vigneswaran, 
 
Greetings from Syncfusion support. 
 
Yes. We can reorder child grid columns. Please refer the below code example and sample for more information. 
 
<div class="control-section"> 
    <ejs-grid #Grid id='Grid' [dataSource]='parentData' [childGrid]='childGrid'> 
 . .  
    </ejs-grid> 
</div> 
 
export class AppComponent { 
    public parentData: Object[]; 
    public childGrid: any; 
    ngOnInit(): void { 
        this.parentData = employeeData; 
        this.childGrid = { 
            dataSource: orderDatas, 
            queryString: 'EmployeeID', 
            allowPaging: true, 
            allowReordering: true, 
            pageSettings: {pageSize: 6, pageCount: 5}, 
            columns: [ 
 . . . 
            ], 
        }; 
    } 
} 
 
 
Please let us know, if you need further assistance. 
 
Regards, 
Manivel 


Marked as answer
Loader.
Up arrow icon