Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Swati on Oct 11, 2009 22:15
open dhtmlx forum
attaching 2 grid in the same cell of a layyout

Hello,

I have a 2e layout. In each of the cells i have first attached a tabbar.
My tabbar has 3 tabs.
My problem is for each of my tabs in need to display 2 grids side by side.....
Is it possible to set the top-left-right-bottom sizes???

Swati
Answer posted by Alex (support) on Oct 12, 2009 03:31

Hello, 

if you want the grids are correctly resized when layout cell is resized, you should use 2U (or 2E) layout inside tab:

var layoutA = tabbar.cells("a").attachLayout("2U");

var grid1 = layoutA.cells("a").attachGrid();

var grid2 = layoutA.cells("b").attachGrid();

Answer posted by swati on Oct 12, 2009 04:02
My grids will be palced besides each other and I want to set different positions for those 2 grids......
Answer posted by Stanislav (support) on Oct 12, 2009 04:51
Such scenario can't be created by using layout 
As something similar - you can attach tabbar to the cell and attach two grids to the different tabs