Movin the scale range

Hello,

I’m currently testing the dhtmlxGantt and I display a fixed date range to my user (eg: 3 weeks) For this, I use gantt.config.start_date and gantt.config.end_date. It works fine.
From now, I want to allow my user to slide the range into the future. One week by one week.
For this, I use an event that modify the date range and fire a gantt.render().
Like this :

gantt.config.start_date = xxx;
gantt.config.end_date = xxx;
gantt.render();

The problem is when some tasks goes out of the range, the gantt displays wrong data :
The out of range task disapear from the grid but not on the scale side. (An empty line stays)
You can try this here :
jsfiddle.net/nuvia/K4DDC/3/
Juste click 3 times on the “>” button to see what I say.

What I’m doing wrong with this ? Is this achievable with dhtmlxGantt ?
(I dont want to relod data to preserve user modifications.)

Thanks for your help.

Sorry, it works with :

gantt.render(); gantt.refreshData();
Thanks.

Hello,

gantt.render(); gantt.refreshData();we’ve confirmed a bug, the component shouldn’t require an additional call of refreshData in order to redraw data items correctly. It will be fixed in a next update. Thanks for reporting