Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Vincent Millet on Oct 16, 2008 06:00
open dhtmlx forum
AutoReSize grid in tabbar in layout

Hi,

I place a TabBar in a dhtmlxLayout cell.
I attach a div with my dhtmlxGrid (filled by loadXML) to a new tab.

Problem: When I resize the Layout cell, the grid keep the same width.

I can't use tabbar.attachGrid() (not existing) and I don't see how I can get the tab content width.

How can I set the width of my grid to use 100% of the Layout cell / Tab?

Thanks!

Vincent
Answer posted by Support on Oct 16, 2008 08:28
>>I can't use tabbar.attachGrid() (not existing) and I don't see how I can get the tab content width.
You can use 
        tabbar.cells(tabId).attachGrid();

( to have such functionality active you need to use full dhthmlx package, or just add dhtmlxtabbar_wins.js in your html page )
Answer posted by Support on Oct 17, 2008 02:29
It appears, that initial version of 2.0 package miss dhtmlxtabbar_wins.js file.
Its attached to the post.
Attachments (1)
Answer posted by Jennifer on Oct 17, 2008 08:04

Is it right? I tried it but I am getting two errors.

The first one says that dhtmlXTabBar is undefined (leads to the attached file, so I am sure it can call that package) and the second says that "Object doesn't support this property or method".

for (var i=0; i<retID.length-1; i++) {
j = retID[i].split("/")[1];
mytabbar.addTab(j,retID[i].split("/")[0],"*");
grids[j] = mytabbar.cells(j).attachGrid();
}

I've already previously declared mytabbar because after the addTab statement, a tab shows up.

 

Please let me know, thanks in advance!

Answer posted by Support on Oct 17, 2008 09:12
Please be sure that while including js files on the page you have
   dhtmlxtabbar.js
and only after it
   dhtmlxtabbar_wins.js