how to put disable rows in grid vaadin 8 ?

Hi
I have a grid with SelectionMode.MULTI but I want some rows to be disabled and others not.
Thanks

This is not supported in Grid directly at the moment, but there are some workarounds, that may work in some cases.

There is also GitHub issue about this

https://github.com/vaadin/framework/issues/9871

See, comment there, quoting:

“Hm… how about grid.addOpenListener((e) → if (isBadBean(e.getBean())) { grid.getEditor().cancel(); }}? I’ve used this workaround for a long long time now (extended Grid to have open/close events back in 7 when it didn’t have them).”

If you use Grid un-buffered editor, GridFastNavigation provides you some workaround as well.

https://vaadin.com/directory/component/gridfastnavigation-add-on