Our state of the art Gantt chart


Post by SIM-LTD »

Hi,

If we take into account that a Gantt can comprise (massive data > 1000 task), then when Adding a task above or below an existing task, makes the overall WBS number updated and you did very well (This is Good)

Then we would like to know where or how could we listen up that process.
Indeed, if you perform a batch to update the WBS on every single task of the gantt, we would like to "fire/catch/listen" that in order to update our database accordingly.

Post by mats »

WBS number is calculated so we don't have a field you can observe for changes easily. You can listen for add/remove events on the Store?https://bryntum.com/docs/gantt/#Common/ ... ore#events

Post by SIM-LTD »

if this is a calculated (computed) field, how do you store the sequence of the Task; to wit:
If the task is reordered (rearrange the Parent/Child/Milestone. Task can be moved above or below ) then the Gantt will look different.
So, when the Gantt is stored in a database, the next loading must render the Gantt as it was.
Then if there is no WBS field or another field where the sequence is stored, how can the Gantt be displayed with the same WBS?

(We just added 2 screenshots to visually make our topic understandable)
Attachments
Capture d’écran 2019-05-17 à 16.17.11.png
Capture d’écran 2019-05-17 à 16.17.11.png (206.63 KiB) Viewed 2320 times
Capture d’écran 2019-05-17 à 16.17.33.png
Capture d’écran 2019-05-17 à 16.17.33.png (192.38 KiB) Viewed 2320 times

Post by pmiklashevich »

It's not supported out of the box. I've created a feature request: https://github.com/bryntum/support/issues/290
Meanwhile you can try to implement it yourself. Please provide a custom field with some index and on each store change save the order and when you reload the grid just sort by this order.

Cheers,
Pavel

Pavlo Miklashevych
Sr. Frontend Developer


Post by SIM-LTD »

Hi Pavel,

Thank you for your return; as usual it very concise and efficiency.

Indeed we have already implemented in that way, but the only concerns we are dealing with is if the Gantt got 1000 lines, and one task on the top is moved to the bottom; then all the sequence (WBS) for all the Gantt line (Tasks) are updated.
Then that means we have to perform at least 1000 updates to the database with the new sequences (WBS) which is quite a lot in terms of response time... Then we thought that displaying a popup window "Please wait while Gantt is updated" was the best approach.
What do you think?
Of course, this case won't occur often and we believe this is a rare case; nonetheless, it might happen and then we must foresee the case.

Post by pmiklashevich »

Yes, having loading/saving indicator sounds like a good idea. You can mask the grid to protect it from changes. Please open Advanced demo and run in console:
gantt.mask('Saving is in progress, please wait...')
setTimeout(() => gantt.unmask(), 2000)

Pavlo Miklashevych
Sr. Frontend Developer


Post by SIM-LTD »

Thank you Pavel

Good to know there is a standard component "Mask"; because as we did not read all your Online user guide (which not obvious) this saves us some time.
The only thing we'll do, instead of "setTimeOut" since we do not know how long this will take, is to perform the "unmask" at the server response (feedback); which is much better...
Thank you for all.

By the way, can anyone have a look at this post (viewtopic.php?f=52&t=11179); because this is a serious issue. Thank you

Post by pmiklashevich »

The only thing we'll do, instead of "setTimeOut" since we do not know how long this will take, is to perform the "unmask" at the server response (feedback); which is much better...
Of course! setTimeout was there ONLY for example purpose :)

Sorry for delay with responses, there are lots of questions on the forums these days. We will check out the post and reply soon. Thank you for taking active part and reporting a number of issues!

Pavlo Miklashevych
Sr. Frontend Developer


Post by SIM-LTD »

Thank you, and we really do understand, you guys (great job)

The post (viewtopic.php?f=52&t=11179) we registered 3 days ago is really serious and DO NOT allow to combine both Scheduler and Gantt in the same application.
We are pretty much stuck now. Please let us know asap.

Post Reply