Is it possible to set flexgrid itemssource without having any rows selected?

Posted by: dharric on 26 September 2018, 11:57 am EST

    • Post Options:
    • Link

    Posted 26 September 2018, 11:57 am EST

    I am building a react app. When I set itemsSource for a flexgrid it automatically selects the first row by default. Then I use grid.select(-1, -1) to unselect it. This triggers some state/property updates in react that are unwanted. Is it possible to not select any row when row data changes?

  • Posted 27 September 2018, 2:38 am EST

    Hi,

    This is the default design behaviour for the grid to reset its selection on source change. So if you don’t the grid to have any selection, you may set its selectionMode property to ‘None’ to prevent from having any selection.

    Please refer to the following sample: https://stackblitz.com/edit/react-nm63ph?file=index.js

    Please let us know if the solution does not work for you.

    ~Sharad

Need extra support?

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

Learn More

Forum Channels