Categories | Question details Back To List | ||
dhtmlxGrid drag & drop question I 've succeed in moving rows between grids, but when I select multiple rows I can't move them at once as your sample does. Next you can foun the code. I will apreciate if you can tell me the reason of this different behavior. Many thanks, Antoni <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta content="text/html; charset=UTF-8" http-equiv="content-type"><title>test</title> <link rel="STYLESHEET" type="text/css" href="codebase/dhtmlx.css"> <script src="./codebase/dhtmlx.js"></script> </head> <body onload="doInitGrid();"> <div id="mygrid_container" style="width:500px;height:200px;"></div> <br /> <div id="grid_desti" style="width:500px;height:200px;margin-top:50;"></div> <!-- <div id="grid_desti" style="width:48%;height:35%;margin-left:50%;"></div> --> <script> var sGrid, tGrid, dp; function doInitGrid(){ sGrid = new dhtmlXGridObject('mygrid_container'); sGrid.selMultiRows = true; sGrid.setImagePath("codebase/imgs/"); sGrid.setHeader("Titol,Autor,Preu,Disponible"); sGrid.setInitWidths("150,150,100,50"); sGrid.setColAlign("left,left,right,center"); sGrid.setSkin("light"); sGrid.setColSorting("str,str,int,int"); sGrid.setColTypes("ro,ro,ro,ro"); sGrid.enableMultiline(false); sGrid.setColumnColor("#d5f1ff,#d5f1ff"); sGrid.enableDragAndDrop(true); sGrid.init(); sGrid.load("dbtest.php"); tGrid = new dhtmlXGridObject('grid_desti'); tGrid.selMultiRows = true; tGrid.setImagePath("codebase/imgs/"); tGrid.setHeader("Titol,Autor,Preu,Disponible"); tGrid.setInitWidths("150,150,100,50"); tGrid.setColAlign("left,left,right,center"); tGrid.setSkin("light"); tGrid.setColSorting("str,str,int,int"); tGrid.setColTypes("ro,ro,ro,ro"); tGrid.enableMultiline(false); tGrid.setColumnColor("#d5f1ff,#d5f1ff"); tGrid.enableDragAndDrop(true); tGrid.init(); } </script> </body> </html> Answer posted by dhxSupport on Aug 26, 2009 09:15 Multi rows dran-n-drop feature is available in PRO version only. |