error after parse of different projects

Hi

If I parse data to the gantt chart it loads correctly and I am able to use the chart accordingly. If I then use the clearAll() method and parse a new set of tasks (that don’t contain a previously selected task) to the chart I am unable to open a lightbox for any of the new tasks if I opened one previously before using the clearAll() method.

Example:

gantt.parse(tasks); //Use the tool and open a lightbox for the a random task. gantt.clearAll(); gantt.parse(new_tasks); //... unable to open a lightbox by double clicking on a task
Error:
0x800a138f - JavaScript runtime error: Unable to get property ‘nextSibling’ of undefined or null reference

Anyone have a work around for this? Thanks

After scouring the forum posts I find a work around for now. I added ‘gantt.resetLightbox’ before the ‘clearAll’ method.

gantt.parse(tasks); //Use the tool and open a lightbox for the a random task. gantt.resetLightbox(); //allows for the lightbox of the new projects to be opened. gantt.clearAll(); gantt.parse(new_tasks);

Solution came from this thread:
http://forum.dhtmlx.com/viewtopic.php?f=15&t=35863

I can confirm the issue. It will be fixed in the next build.
If you need the update ASAP - please open ticket at support.dhtmlx.com