Search code examples
nattable

How to prevent multiple selection in nattable?


I want the rows of nattable to be single-select only.

Now, multi-selection is possible using ctrl or shift. How do I make single-selection possible?

I would be very grateful if you could leave an answer to a question


Solution

  • If you want to support row selection only, you need to configure the RowSelectionModel to set the multipleSelectionAllowed flag to false and set it as SelectionModel to the SelectionLayer.

    Have a look at our examples application to get an idea how this can be done.