Attaching dhtmlxGrid & dhtmlxForm into Tabbar Cell

Hello, I’m a Noob Here…
I have create a windows that contains tabbar with 2 cells,
however… i would insert 2 form and 2 gridbox in cell “a1”.

Like This,


TAB A1 (active) | TAB A2 |

FORM | GRIDBOX1 |
FORM | GRIDBOX 2 |

This is My Code :

<div id="tabbar" style="height:650px; width:100%; float:left;"></div>
<script>
var tabbar = new dhtmlXTabBar("tabbar", "top");
tabbar.setImagePath("dhtmlx/codebase/imgs/");
tabbar.setAlign("left");
tabbar.addTab("a1", "New User", "150px");
tabbar.addTab("a2", "Old User", "150px");
tabbar.setTabActive("a1");
var myForm = tabbar.cells("a1").attachForm();
	myForm.loadStruct("form_xml/userbaru1.xml?" + new Date().getTime());

If I attach again with dhtmlxGrid, the form does not appear.

howto make it?
Every reply would be appreciated :slight_smile:
Thank’s Before :slight_smile:

Unfortunately with attachForm/attachGris methods only one component can be places in the tabbar cell.
You may attach a layout or a accordion to your tabbar cell:
dhtmlx.com/docs/products/dht … nside.html
dhtmlx.com/docs/products/dht … nside.html
and add a needed component to each cell of a layout/accordion

Thank’s for the reply,
Done with attaching layout in windows.
too many attached component make me confused :smiley:

once again… Thank you very much.

I have the same problem.
Finally, I replace the form with a toolbar. It works.