Search found 255 matches

Now you're talking! Working! Thank you so much! :D

So I have to wait for the rows to be rendered before I can add listeners to the task store... Isn't that weird? I mean it's a fine workaround but is it really designed that way?

Ok so then I guess I have to wait for some event. I mean I can't just add an arbitrary timeout that's not acceptable. I have to add that listener as part of the Gantt configuration, or as close to it as possible.

Interresting. It works if I add the listener in the console, but it doesn't if I add it at the end of the Code editor... Is that intended?

This is a followup to this post . Here's how to replicate: 1- Load the basic demo 2- Add this code at the end of the code editor: gantt.project.taskStore.addListener('remove', function() { alert(); }) 3- Delete a task from the Gantt diagram 4- :!: An alert should pop, but does not The beforeRemove e...

Thanks for the clarification, Marcio :)

Hi Alex, I thought I hadn't done this but your code example has a mistake, it's addCrudStore , not addCrudManager ;) So I already use addCrudStore in my project. And it works fine when I directly delete records from that store. However, I'm trying to cascade task deletion to its timespanHighlights. ...

Oh, I understand. It's quite obvious now with your explanations. Thank you Ghous :)

Excellent! The workaround works on your demo, and on our production server as well!

Thanks!

One quick last question. In my example, when I delete a task, it should cascade to all its timespans so I'd like the sync request to also include the deleted HighlightTimespanModel records that are linked to the task by the taskRecord relation. So the sync request payload would look something like t...