Categories | Question details Back To List | ||
subgrid, enableAutoHeigth and verrical scrollbars Hello, I'm using dhtmlXGridObject with the enableAutoHeigth set to true, because I don't want any scrollbar in the table. But when expanding a subgrid both horizontal and vertical scrollbars appears! Is there any clue to this unexpected behaviour? this is the init() code I'm using: mygrid = new dhtmlXGridObject('mygrid_container'); mygrid.setImagePath("/dhtmlximgs/"); mygrid.setHeader("+,Id,Ritiro,,Da, Consegna,, A, Azioni"); //'Id', 'Ritiro', 'Da', 'Consegna', 'A', 'Click','n1','n2', 'Azioni' mygrid.setInitWidths("20,60,100,20,100,100,20,100,*"); mygrid.setColTypes("sub_row_ajax,ro,ro,img,ro,ro,img,ro,button"); mygrid.setColAlign("left,left,left,left,left,left,left,left,left"); mygrid.setSkin("modern"); mygrid.enableAutoHeigth(true,0,false); mygrid.enableResizing("false,false,false,false,false,false,false,false,false"); //mygrid.enablePaging(true,10,3,"pagingArea",true,"recinfoArea"); mygrid.init(); mygrid.load("/GridData/getxml.php?action=ultimeofferte&tbl=carico"); Thanks, Luca Answer posted by dhxSupport on Sep 01, 2009 01:58 This is know issue. We are working to fix it. As a quick solution add following code to the grid initialization: mygrid.attachEvent("onSubGridLoaded",function(){ mygrid.setSizes(); }) Answer posted by Luca on Sep 01, 2009 02:34 I've used your code, but the onSubGridLoaded event is not fired at all. I'm actualy using the free codebase, perhaps is this the problem? Thanks, Luca Answer posted by dhxSupport on Sep 01, 2009 02:38 Sub grid extension and "onSubGridLoaded" event are not available at free version at all. |