Hi, in my project I’d need to attach a dhtmlxGantt to a tabbar, but I got the following error:
TypeError: tabToolGantt.attachGantt is not a function
localhost/baango/home.php
Line 1016
I’m trying to attach it doing this:
tabAccount.addTab('tabToolGantt','Gantt','');
var tabToolGantt = tabAccount.cells('tabToolGantt');
var gantt = tabToolGantt.attachGantt();
Is maybe the gantt available just for PRO version?
Otherwise, what I’m doing wrong?
Thanks in advance,
Samuel
Hello,
seems working with following code (generated via dhtmlx3 visual designer):[code] var main_layout = new dhtmlXLayoutObject(document.body, ‘1C’);
var a = main_layout.cells('a');
var tabbar_1 = a.attachTabbar();
tabbar_1.addTab('tab_1','Gantt','');
var tab_1 = tabbar_1.cells('tab_1');
tabbar_1.setTabActive('tab_1');
tab_1.attachGantt();[/code]
p.s.,
please do not duplicate your topics, viewtopic.php?f=15&t=34690
gantt_n_tabbar.zip (799 KB)
Hi sorry for the duplication.
I used your .js and .css and moved gantt includes after general ones and it worked fine.
Thanks,
Samuel