I use a grid with multiselect and splitAt functionality. When I select multiple rows the columns after the split get the selected style, but the columns before the split only get the selected style on the last clicked row.
Is there a solution for this problem?
Unfortunately we cannot reproduce this issue locally. What version of dhtmlxGrid and what skin do you use? Please check if you are setting grid’s skin before calling mygrid.splitAt().
I use version 2.5 and the skin is set before the splitAtt
I’ve attached three files:
- testgrid.htm = the page with the grid
- testxml.php = the xml that should be loaded on the page
- screenshot with the problem
testxml.php.zip (329 Bytes)
testgrid.htm (1.44 KB)
To fix this issue just move grid.enableMultiselect(true); command before grid.init();
After all your code should looks like that:
grid = new dhtmlXGridObject(“gridBox”);
grid.setHeader(“Vak,1,2,3,4,5,6,7,8,9,10”);
grid.setInitWidths(“175,50,50,50,50,50,50,50,50,50,50”);
grid.setColAlign(“left,center,center,center,center,center,center,center,center,center,center”);
grid.setColTypes(“ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro”);
grid.setSkin(“dhx_skyblue”);
grid.enableMultiselect(true);
grid.init();
grid.splitAt(1);
grid.loadXML(“testxml.php”);
Please find important information about using splitAt() functionality here dhtmlx.com/dhxdocs/doku.php?id=d … lit_mode&s[]=splitat