how to merge two headers

Hi.
I'm using the ejgrid component, I would like to merge these two headers and also can order by numbers and names (see image below)

I would like to make something like this (see image below)

I will be awating for your reply, thanks y advance.
Regards, Luis.

3 Replies

MS Mani Sankar Durai Syncfusion Team December 14, 2017 12:03 PM UTC

Hi Luis, 

Thanks for contacting Syncfusion support.  

We have checked your query and we can achieve your requirement using mergeHeaderCellInfo event in grid. We have also prepared a sample that can be available from the below link.  
Please refer the below code example 
$("#Grid").ejGrid({ 
                dataSource: data, 
                allowPaging: true, 
                mergeHeaderCellInfo: function (args){ 
                    args.headerCellMerge(3, 2); 
                }, 
                columns: [ 
... 
                ] 
            }); 

Please refer the documentation link 

Please let us know if you need further assistance.  

Regards, 
Manisankar Durai 



LC Luis Carlos December 19, 2017 07:42 AM UTC

Hi again!

It doesn't work with stackedHeaderRows as you can see in the next image.

Here you have the sample that I did http://jsplayground.syncfusion.com/wl2mhjdi



I will be awaiting for your reply, thanks again.

Regards, Luis.


MS Mani Sankar Durai Syncfusion Team December 20, 2017 11:25 AM UTC


Hi Luis, 

We have analyzed your query and we are able to reproduce the reported issue. We confirmed that the issue “Misalignment when merging the two header-cell while using stacked headers“ is a defect, and we have logged a defect report. The fix for the issue will be included in our Volume 1, 2018 release which is expected to be rolled out by the month of January, 2017. 

Regards, 
Manisankar Durai. 





Loader.
Up arrow icon