dhxtabbarAll.enableAutoRow is not a function dhtmlx_2.5_pro

Hi,



in version 2.5 an error occurs for code which worked in earlier version:



Error:

dhxtabbarAll.enableAutoRow is not a function





The Coding is:

var dhxLayoutAll = new dhtmlXLayoutObject(�osmdx�,�1C�); a auf links; b und c auf rechts var dhxtabbarAll = dhxLayoutAll.cells(�a�).attachTabbar(); rechts unten



dhxtabbarAll.enableAutoSize(true,true); dhxtabbarAll.enableAutoRow(true); dhxtabbarAll.enableTabCloseButton(false); dhxtabbarAll.setHrefMode(�iframes�); dhxtabbarAll.setSkinColors(�#FCFBFC�,�#F4F3EE�); dhxtabbarAll.setImagePath(�dhtmlx/dhtmlxTabbar/codebase/imgs/�);



dhxtabbarAll.addTab(�all1�, �<%= i18n.txt(�Generator�) %>�,�100px�); dhxtabbarAll.addTab(�all2�, �<%= i18n.txt(�Diagrammdesigner�) %>� , �100px�);



dhxtabbarAll.setTabActive(�all1�); dhxtabbarAll.disableTab(�all2�, true);



Any suggestions?


Hello,


enableAutoRow was missed by mistake. We will check how it can be restored.


For now you can replace it with dhxtabbarAll.normalize() call after adding all tabs:


dhxtabbarAll.addTab(�all2�, �<%= i18n.txt(�Diagrammdesigner�) %>� , �100px�);


dhxtabbarAll.normalize();


Regarding the issue posted in the dhtmlx.com/docs/products/kb/inde … 94&a=20076


Where do you call these methods ? possibly they are called inside iframe. In this case you should call parent.tabbarObj to get tabbar object.


You can use something as follows inside iframe:


var tabbar = parent.dhxtabbarAll;


tabbar.addTab(xxx, xxx);