Update : Online doc is available at docs.dhtmlx.com/gantt, the package was updated on September 03. If you want to try the new features - please re-download the package.
We plan to release the new version of dhtmlxGantt in September. If interested, you can now download the latest development version:
If you have worked with dhtmlxScheduler, you can easily understand the API. Note that this is a development version and we continue adding features and fixing bugs. We are still working on the documentation for the new version but you can see the demos included in the package and try the new features of dhtmlxGantt.
The main new features of dhtmlxGantt 2.0 are:
Global
Works on both desktop and mobile touchscreen devices
Look and Feel
All text labels and date formats are configurable
4 customizable skins
Localization support
Color and texts of each task can be customized
The ability to color specific rows or date-columns
Sagnik, this feature will be available in the new version of dhtmlxGantt. You can check the demos placed in the ‘samples/03_scales/’ folder of the dev. version.
data can be saved with dhtmlxDataProcessor and dhtlmx connector for gantt. You can also do back-end saving without a connector, gantt uses the same data processor protocol as other dhtmlx components. docs.dhtmlx.com/doku.php?id=dhtm … gprinciple
Please use this package, we’ve attached updated dhtmlx connectors and mysql dump with reqired database tables. Sql dump and db connection settings can be found at samples/common/ s3.amazonaws.com/uploads.hipcha … 130807.zip
Example for loading/saving data:
samples/01_initialization/03_connector_init.html
Task object holds some service properties(all properties that starts with $ character). Id of the parent node is stored in task.$parent
You can retreive parent task following way
if(!task.$parent){
//has no parent task
}else{
var parent = gantt.getTask(task.$parent);
}
I want to run a javascript function on my page on save of the light box where I want to do some calculations and accordingly allow user to use or not save. How should I do that?
Is it possible to get a hold of a preliminary copy of the documentation?
Will it be possible to have the “Parent” be somehow automatically rendered without having a specific record tied to it? Or at least have the start and end date change on the parent when the children start and end are adjusted.
My goal is to have the tasks come from the database, grouped by project. But the project duration would always just be a reflection of the duration of its children - not an adjustable task in its own right.
You can attach custom function on event following way:[code]gantt.attachEvent(“onBeforeLightbox”, function(task_id){
//do something
//return true to continue default behavior, returning false value will prevent lightbox from showing
return true;
});[/code]Posted version of gantt throws following lightbox-related events:
“onBeforeLightbox” - after user double-clicks on task(on opening lightbox in any other way), but before showing lightox
“onLightbox” - triggers when ligthbox is initialized and shown
“onLightboxCancel” - when user presses ‘cancel’ button
“onAfterLightbox” - after lightbox is closed
However, seems like it misses ‘onLightboxSave’ event, which should have allow validating and preventing saving, trigger for ‘delete’ button is also missing. We’ll add it and update the beta in the nearest time.
documentation is being actively edited, so we can’t provide it for now
Hi kdoronzio,
it’s a planned feature, although currently it’s not implemented.
Technically you can achieve it’s right now by updating duration of the parent each time one of it’s child is updated.
Modifying of the task can be catched following way://task modified
gantt.attachEvent("onAfterUpdate", function(id, task){
//update parent here
});
//new task added
gantt.attachEvent("onAfterAdd", function(id, task){
//update parent here
});
How do I edit or delete the links on the chart? Clicking or dragging on the link does not work.
onAfterLinkAdd
onAfterLinkUpdate
onAfterLinkDelete
are the existing methods. onAfterLinkUpdate,onAfterLinkDelete - when will these two get called?
The Link sample " 03_connector_init " is also not loading.