You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if there was an option to disable each cell / columns "active" state - basically disabling selection.
I've gone through the docs but I could only find the "disable" option for each column, which prevents input, but not selection.
I've managed to come up with a hacky workaround where I manually set the selection within the onSelectionChange prop with the ref attached to the Grid component, as such:
It works great, but on some keyboard actions such as "select whole row" or "select next column cell", the selection is affected very briefly, and results in a somewhat buggy animation.
Do you have any plans on adding an option on disabling columns / cells entirely?
Thanks.
The text was updated successfully, but these errors were encountered:
additionally,
the hack cannot "completely disable" the cell,
as selecting the "completely disabled" cell results in a selection of a nearby cell which is not "completely disabled".
mymoto23
changed the title
add support for disabling active state for certain cells / columns
add support for disabling selection of certain cells / columns
Jun 26, 2023
Hi @nick-keller,
Great work on the package!
I was wondering if there was an option to disable each cell / columns "active" state - basically disabling selection.
I've gone through the docs but I could only find the "disable" option for each column, which prevents input, but not selection.
I've managed to come up with a hacky workaround where I manually set the selection within the
onSelectionChange
prop with the ref attached to the Grid component, as such:It works great, but on some keyboard actions such as "select whole row" or "select next column cell", the selection is affected very briefly, and results in a somewhat buggy animation.
Do you have any plans on adding an option on disabling columns / cells entirely?
Thanks.
The text was updated successfully, but these errors were encountered: