Is it possible to use Gantt with the Connector, so that data is coming from database?
If not, is there a workaround existing?
Is it possible to make the Gantt chart representing 24 hours instead of 8 hour workday?
Is it possible to attach Gantt to Layout, like so? It isn’t listed, but I want to ask anyway.
var timeline = dhxLayout.cells(“b”).attachGantt();
I cannot see any way to make the Gantt resize to match layout cell.
Also one user wrote:
pyleaf, 2010/09/27 03:39
1, why does the the period of the parenttask decide the last childtask? In fact, I think the relationship should be Converse, because parenttask is virtual but childtask real
And response is:
Support, 2010/10/14 05:57
We have encoded one of possible algorithms. As I understand, we should add the ability to disable it. We will plan it for the next version. Thank you for the comment.
I would like to know whether this option exists and how I may use it.
Thanks!
No, we do not have ready-to-use connector for the Gantt yet, you should use your own code to supply XML for the gantt. Basically it is very, very project specific.
Yes. In the current version you should manually fix the source code, line
this.hoursInDay = 8;
In the next version there will be a method setHoursInDay()
If you would like, please add it to the code as this:
GanttChart.prototype.setHoursInDay = function(hours)
{
if (hours<1 || hours>24) {
alert("Invalid DayHours value. Must be within the range [1..24].");
return;
}
this.hoursInDay = hours;
this.hourInPixelsWork = this.dayInPixels / this.hoursInDay;
};
and call it before create().
To request these as features, should I repost in the other forum?
Can you give me a hint which technology I should use to generate my own XML from the database? Is this Ajax or Json or … something else? I will go learn it.
Am I correct to believe that Gantt chart does not support both date and time?
For example if I have field in in mySQL, with type “datetime”, then it formats as:
“2011-01-01 14:00:00”
Is this why my XML conversion is not working?
If so, may I suggest option to display in hours instead of days?
Instead of linking to xml file, I linked to this php file.
Of course I may have made other error:
Kind of - you may directly out your XML back to client, no need to have a file.
So you point instead of data.xml to data.php and within this script you can print your xml data.