Dhtmlx Grid : SplitAt plugin is disturbing the layout





Hello DHTMLX Support.

I am using splitAt method to add frozen columns to my Grid. In below scenarios I am facing problem.

  1. Multi Header is there, first header row will be “25px” but the second one inconsistent.
  2. If I give splitAt(3) it is working fine, but if I had set more than 3, header height is increasing changing every time I sort the column.

Here is my header

mygrid.setHeader(“a,b,c,d,e,f,g,#cspan”);
mygrid.attachHeader(“#rspan,#rspan,#rspan,#rspan,x,y,z,m”);
mygrid.splitAt(4);

Please help me on this.

Prathap

This is the known issue in the Chrome browser.
Unfortunately it cannot be fixed.
Here are some solutions:

  1. disable splitAt()
  2. remove rowspans from the first column in your grid.
  3. add one more column (it may be hidden) as the first column of your grid. that column should be without rowspan:

mygrid.setHeader("a0,a,b,c,d,e,f,g,#cspan"); mygrid.attachHeader("a0,#rspan,#rspan,#rspan,#rspan,x,y,z,m"); mygrid.setInitWidths("0,...") mygrid.splitAt(5);