[React] - Wijmo FlexGrid - SelectionMode Options

Posted by: brandon.grime on 21 June 2018, 12:22 am EST

  • Posted 21 June 2018, 12:22 am EST

    Hey,

    Not even sure how to word this without it sounding super confusing, and maybe thats why I havnt been able to find any documentation on it, but I will give it a shot!

    Is there any way to have multi column selection, but not necessarily concurrent. So the user could ctrl_click col1 and col5 for example, have col 2, 3, and 4 still unselected.

    My use case for this is that we have a grid displaying data, and it is a requirement to have read only columns. So if column 1 is editable, and column 3 is editable, but column 2 is read only; I want the user to still be able to select column 1 and 3 at the same time, excluding column 2 (the readOnly column).

    I found this forum post which I could rework possibly, but do you have the solution in React?

    https://www.grapecity.com/en/forums/wijmo/how-can-i-select-multi-cel

    Thanks,

    Brandon

  • Posted 21 June 2018, 11:05 pm EST

    Hi,

    Please refer to the following sample for react version of the same:-

    https://stackblitz.com/edit/react-fswvdl?file=index.js

    In the sample above if you turn on the excludeReadOnlyRanges flag then any selection which contains at least one read-only cell will not be added to the selectionRanges.

    ~Manish

  • Posted 22 June 2018, 1:16 am EST

    Awesome, thanks a bunch. I will have a look and post a response if I have any further questions.

Need extra support?

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

Learn More

Forum Channels