View Full Version : Gantt Chart in Window possible?

30 Mar 2011, 4:25 AM
I want to implement a gantt chart in my site, but I'm doing this on the side and can't dish out $500 for the ext scheduler gantt combo.. I'd like to use jsgantt (http://www.jsgantt.com/) but they require a DIV element where I'm building everything through ext. Idealy I'd like to have its own ext window for the chart, but don't know how this is going to be implemented.

I'm playing with a hidden tag I can give the chart for its own reference, but my question is will I be able to add it to the panel in my ext window? If anyone knows of problems that will arise please shed light as I'm still building this.


30 Mar 2011, 6:09 AM
All the components are is styled divs really.

So you can get the body div of a window by:

var bodyEl = window.body;

This is an Ext Element. To drill down to the actual HTML DOM element:

var bodyDiv = window.body.dom;

Now you can render your chart there. Make sure you render the chart after the window is rendered or else you won't be able to find the div as it wouldn't be rendered yet.