Update only impact Flexgrid cells when data (itemsSource) change

Posted by: issoufou.galadimadjadi on 11 April 2018, 10:48 am EST

    • Post Options:
    • Link

    Posted 11 April 2018, 10:48 am EST

    I am working on Wijmo flexGrid with react. I want to display large dynamic data.

    the data comes from a server, and if some changes happened the server resend data with changes.

    I want to update Flexgrid data source (itemsSource props) without redrawing all the grid.

    Actual, when the data change the grid is drew, so

    it’s disturbing for user, especially if change happened when he have scrolled.

  • Posted 12 April 2018, 10:03 am EST

    Hi,

    The behaviour you are experiencing is part of the design and could not be avoided.

    What you can do is save scroll position before updating itemsSource and then restore scroll position thereafter.

    Refer to following example:-

    https://stackblitz.com/edit/react-da6hac

    ~nilay

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels