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
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 )
It appears, that initial version of 2.0 package miss dhtmlxtabbar_wins.js file.
Its attached to the post.
dhtmlxtabbar_wins.zip (589 Bytes)
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!
Please be sure that while including js files on the page you have
dhtmlxtabbar.js
and only after it
dhtmlxtabbar_wins.js