How I can merge cells in WebDataGrid? But without using Sorting Sell Merging
Infragistics puts the header elements are in a <table> by themselves and that <table> has only one <tr>, so how could setting colspan on those header elements have any effect?
We have just upgraded to the latest version and I am a bit baffled by the difficulty in using the new webdatagrid - and the limitations. Is there any reason why this was done this way? - ie cannot merge cells easily without sorting , no more cell style properties... etc
Hello Anton,
I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
Thank you for posting in our forum.
Generally there isn’t a cell merging option in the WebDataGrid except the one for the sorting behavior.
You might be able to set a colSpan for the cells you want to span horizontally in the manner I suggested here:
http://es.infragistics.com/community/forums/t/78016.aspx
However you would need to make sure that the cell’s colSpan matches with the header th elements col span so that the two would be aligned.
For example you can get the header element and set the colSpan like this: sender.get_columns().get_column(0).get_headerElement().colSpan = 2;
Also if you have filtering you might need to do the same to the cell in the filter section to prevent any misalignment that may occur.
Let me know if you come across any issues or have any questions.
Developer Support Engineer II