Programmatically select and unselect non-contiguous rows in FlexGrid

Posted by: jinder.sidhu on 19 April 2018, 12:18 am EST

  • Posted 19 April 2018, 12:18 am EST

    I’ve got a Wijmo FlexGrid that is set to operate in ‘ListBox’ selection mode. This enables the user to select non-contiguous rows.

    How can I select or unselect rows programmatically in a similar fashion? For example, how would I select/unselect rows 3, 5, 7, 9, 25 only?

    Thanks!

  • Posted 19 April 2018, 2:03 pm EST

    Hi Jinder,

    If the selectionMode is set to ListBox, you may select row by setting isSelected to true. Please refer to the following fiddle for the same:

    http://jsfiddle.net/pq58z0yj/21/

    ~Manish

  • Posted 19 April 2018, 8:49 pm EST

    The example doesn’t seem to work as expected. If you click the checkbox, even though the output shows the row as selected, it’s not turning blue.

  • Posted 22 April 2018, 10:12 pm EST

    Hi,

    We are sorry, we are unable to replicate the issue at our end.

    The row’s isSelected property seems to be working just fine.

    Would you please explain some more about the problem you are facing?

    Here is the same example without any extra code if you want to have another look:- http://jsfiddle.net/smjeo8y9/

    ~Manish

Need extra support?

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

Learn More

Forum Channels