2 SubGrid Problems

Hello,

i have 2 problems with your sub grids,

  1. ) if i have a subgrid on a subgrid, the other rows in the grid dont find their right position, i added a screenshot, on which you see the problem.

  2. ) if i have an open subgrid and i change the checkbox of the parent row, the parent row set his setting to vertical alignment, which positioned the row behind the subgrid, i also attached a screenshot.

I hope you understand my problems and can help me.
Thx Michael




Unfortunately issue can’t be reconstructed locally.

If issue still occurs for you - please provide any kind of sample or demo link where it can be reconstructed. (You can send such example directly to the customer.support@dhtmlx.com)

I also have the same problem. Here is my code. Any help, much appreciated.

<link rel="STYLESHEET" type="text/css" href="codebase/dhtmlxgrid.css">
<link rel="stylesheet" type="text/css" href="codebase/skins/dhtmlxgrid_dhx_skyblue.css">
<script  src="codebase/dhtmlxcommon.js"></script>
<script  src="codebase/dhtmlxgrid.js"></script>
<script  src="codebase/dhtmlxgridcell.js"></script>    
<script  src="codebase/excells/dhtmlxgrid_excell_sub_row.js"></script>    
<script  src="codebase/dhtmlxgrid_srnd.js"></script>    
 
<div id="gridbox" style="width:600px;height:500px;background-color:white;"></div>

<script>
	mygrid = new dhtmlXGridObject('gridbox');
	mygrid.setImagePath("codebase/imgs/");
	mygrid.setHeader("&nbsp;,Book Title,Author,Price,In Store,Shipping,Bestseller,Date of Publication");
	mygrid.setInitWidths("30,150,100,80,80,80,80,200");
	mygrid.setColAlign("right,left,left,right,center,left,center,center");
	mygrid.setColTypes("sub_row,edtxt,ed,price,ch,co,ra,ro");
	mygrid.attachEvent("onSubGridCreated",function(sub,id,ind,value){         
		sub.loadXML("common/sub.xml"); 
		sub.setSizes();
	});
	mygrid.setRowTextStyle(5,"height:170px;")	
	mygrid.enableAutoHeight(true);
	mygrid.init();	
	mygrid.setSkin("dhx_skyblue");
	mygrid.loadXML("common/sgrid.xml");/*, function() {
	    mygrid.cells("2", 0).open();
	});*/
</script>
<Body>
</body>

Try to add the next code

var corrector = function(sub){ this.callEvent("onGridReconstructed",[]); }; grid.attachEvent("onSubGridCreated", function(sub){ sub.attachEvent("onSubGridLoaded",corrector); });

Thanks