Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Micha Hastrich on Oct 22, 2009 05:53
open dhtmlx forum
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?
Answer posted by Alex (support) on Oct 22, 2009 07:01

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();

Answer posted by Alex (support) on Oct 22, 2009 07:06

Regarding the issue posted in the http://dhtmlx.com/docs/products/kb/index.php?s=normal&q=11494&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.

Answer posted by Alex (support) on Oct 22, 2009 07:57

You can use something as follows inside iframe:

var tabbar =  parent.dhxtabbarAll;

tabbar.addTab(xxx, xxx);

...