Discuss anything related to web development but no technical support questions


Post by sandippatel »

Hello

Is there any possibility to add new item into task. I mean I don't want to append the item instead I just want to overwrite the existing one.

As of now I use following code to add new item into task

gantt.taskStore.rootNode.appendChild({ name : "Add new task", duration : 1 })

Thanks


Post by mats »

Yes you can always use set to overwrite the data:

gantt.taskStore.getById(123).set({ name : "Add new task", duration : 1 });

Post Reply