Categories | Question details Back To List | ||||||||||||||||||||
SplitAt And multiselect 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? Answer posted by dhxSupport on Sep 08, 2009 03:51 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(). Answer posted by Arnoud on Sep 08, 2009 06:13 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 Attachments (3)
Answer posted on Sep 08, 2009 06:39 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 http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:split_mode&s[]=splitat |