Smart UI Components & Libraries – Grid, Scheduler, Gantt, Kanban for Angular, React, Next.js, Vue, Blazor, JavaScript › Forums › Gantt › Dynamic data
Tagged: dynamic data, Ganttchart, runtime
- This topic has 3 replies, 2 voices, and was last updated 2 months ago by
Markov.
-
AuthorPosts
-
August 28, 2025 at 8:18 am #112895
sparki smith
ParticipantI am evaluating the component to figure out if it will fit our scenario before committing to purchase license.
I was able to reliably update a single task within the GanttChart without loosing scroll position and selection. This can be done by using the UpdateTask() method. In Blazor WASM the update happens in ~300-400ms, not ideal but it would be usable for a single task. With this, scenario 1 is covered.
For scenario 2 we have requirements to update 300 tasks every 2 seconds. Using the UpdateTask() will not work because updating all 300 tasks one-by-one will take 300 * 300ms which is 90 seconds – not acceptable. So the questions I have are:
Q1: Is there a way to update all 300 items at once, without loosing scroll position and selection?
Q2: Resetting the DataSource will bring the Tasks` updates, but it will loose the UI state (e.g. scroll position, selection). Is there a way to gracefully save and then restore the UI state? It is important the end user to not notice the update in any way!I am looking forward to hearing from you.
-Pavlov.August 28, 2025 at 9:29 am #112897Markov
KeymasterHi,
Have you tried calling beginUpdate before calling multiple times UpdateTask and EndUpdate after that?
Best regards,
MarkovSmart UI Team
https://www.htmlelements.com/August 28, 2025 at 10:13 am #112899sparki smith
ParticipantNo, I havent tried that approach. I did not find it in the docs. That is why I wrote here.
After trying it out, it looks like it does the job as required. Thank you for pointing it out!
I believe the GanttChart with this approach for updating dedicated items will cover our requirements for dynamic data.
The only remaining component for evaluation is the Kanban.
Could you please take a look at my other thread?
https://www.htmlelements.com/forums/topic/any-known-issues-with-kanban-in-blazor/-
This reply was modified 2 months ago by
sparki smith.
August 28, 2025 at 2:51 pm #112902Markov
Keymaster -
This reply was modified 2 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.