Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #112895
    sparki smith
    Participant

    I 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.

    #112897
    Markov
    Keymaster

    Hi,

    Have you tried calling beginUpdate before calling multiple times UpdateTask and EndUpdate after that?

    Best regards,
    Markov

    Smart UI Team
    https://www.htmlelements.com/

    #112899
    sparki smith
    Participant

    No, 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 weeks, 3 days ago by sparki smith.
    #112902
    Markov
    Keymaster

    Sure, just updated there.

    Best regards,
    Markov

    Smart UI Team
    https://www.htmlelements.com/

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.