Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by meenakshi on Jun 22, 2009 06:54
open dhtmlx forum
Problem with Tabbar and DHTMLXWindows

hi,
I have two problems:

1- I have to load a Tabbar via and XML and I want to attach Grid to one of the tabs. below is the code which I am using
function create()
{
dhxWins1 = new dhtmlXWindows();
dhxWins1.setImagePath(imgPathWindow);
GUIToolsWin = dhxWins1.createWindow("GUIToolsWin", 240, 50, 600, 500);
Tabs = GUIToolsWin.attachTabbar();
Tabs.loadXML('tabbar.xml');

// Later I try to attach a grid with a tab.
mygrid = Tabs.cells(dhxWins1,"TestTab").attachGrid();
}
The problem is that the grid is not getting attached to the tab. In fact the tab is not getting created at all. please help.

2- The above function is called when i select a menu item named "Debug" from the menu. when i first time click on Debug, the
GUIToolsWin.show() menthod is working and it is displaying the window, but when I click on the menu item again the same
GUIToolsWin.show()method is throwing an error "Object doesn't support this property or method".

Thanks in anticipiation.
Meenakshi
Answer posted by Alex (support) on Jun 23, 2009 00:53

Hello, 

there is the issue in the method that attaches grid (_ is missed here): 

mygrid = Tabs._cells(dhxWins1,"TestTab").attachGrid();

Also please check that dhtmlxtabbar_wins.js is included.

several calls of GUIToolsWin.show() doesn't cause the described issue - please, check the sample http://dhtmlx.com/docs/products/dhtmlxWindows/samples/settings/visibility.html

If the issue still occurs, please provide the complete demo to re-create it