setting attributes style for grid & toolbar object

Dear DHTMLX Support

I am using layout object with one cell and i try to attach object (div element)

<div id="objId" style="width: 100%; height: 100%; overflow: auto; display: none;">  
	
	<div style="width:100%; height: 5%;"><div id="toolbarObj"></div></div>			
	<div id="gridbox" style="width:100%; height:95%;"></div>		
	
</div>

then i create grid and toolbar object using gridbox and toolbarObj as container

mygrid = new dhtmlXGridObject('gridbox');
toolbar = new dhtmlXToolbarObject("toolbarObj"); 

my question is How to set attributes style (grid and toolbar) like (overflow, position, etc…) in order for my object as dynamic as when i use attach method (attachGrid and attachToolbar)

sorry for my english

thank you

Please, try to use the following solution:

mygrid.dhxLayout.cells(“a”).attachGrid();
mygrid.entBox // container of the grid

mytoolbar.dhxLayout.cells(“a”).attachToolbar();
mytoolbar.cont // container of the toolbar