Hi,
Is it possible to scroll the gantt to a specified date ? I need to display the current day, or week, month, year…
Is it possible ?
thanks.
Hi,
Is it possible to scroll the gantt to a specified date ? I need to display the current day, or week, month, year…
Is it possible ?
thanks.
Hello,
there is a public method for showing specific task
docs.dhtmlx.com/gantt/api__gantt_showtask.html
However, the current api provides no public method for scrolling to specific date.
But it can be done pretty simple:
[code]function showDate = function(date){
var date_x = gantt.posFromDate(date);
var scroll_to = Math.max(date_x - gantt.config.task_scroll_offset, 0);
gantt.scrollTo(scroll_to);
};
//usage
showDate(new Date());[/code]