Page 1 of 1

Advanced-Gantt App inside div

Posted: Wed Mar 06, 2019 1:24 am
by Jean
Hello team Bryntum,

Please your help,

I use example template advanced-gantt pro 5.1.14
I need Advanced-Gantt inside in div

I have read the forum, but I need to know exactly in what file I should update

renderTo: "mydiv"


I have added this code in different files but the gantt is seen in full screen, maybe there is another way, could you tell me what is the correct file that I should modify?


attachment image of my js

thanks.

Re: Advanced-Gantt App inside div

Posted: Wed Mar 06, 2019 8:06 am
by pmiklashevich
We have rendertodiv demo. You're right about `renderTo`, but you also need to create the gantt explicitly. For that you need to remove 'advanced-gantt' from the child items of 'advanced-viewport' and create instance of your gantt manually, like
Ext.onReady(function() {
    Ext.create('Gantt', {
        renderTo : 'gantt-container'
    });
});