When I creating 1 tab and then close it and creating this tab again I’m getting following:
win.attachGrid is not a function
[Break on this error] var mygrid = win.attachGrid();
10.249…44:2010 (line 89)
this.cells(id).show is not a function
[Break on this error] _setTabActive:function(tab,mode){if (…);this._scrollTo(tab);return true;},
Code that I’m using to add tab:
dhxTree.attachEvent(“onClick”,function(id){
if (id!=1){
if(!dhxTabbar.cells(id)){
dhxTabbar.addTab(id, dhxTree.getUserData(id,“title”));
// dhxTabbar.setContentHref(id, dhxTree.getUserData(id,“href”) );
var win = dhxTabbar.cells(id);
// var toolbar = win.attachToolbar();
// toolbar.setIconsPath("/codebase/imgs/");
// toolbar.loadXML(“dhxtoolbar.xml”);
var mygrid = win.attachGrid();
mygrid.setImagePath("/codebase/imgs/");
mygrid.setSkin("dhx_skyblue");
// mygrid.setDateFormat("%d/%m/%Y");
mygrid.init();
mygrid.loadXML(“users_xml.php”);
mygrid.attachHeader(" , ,#combo_filter, , ,#combo_filter");
};
dhxTabbar.setTabActive(id);
};
return true;
});