gwt-material-table icon indicating copy to clipboard operation
gwt-material-table copied to clipboard

Disable selection on certain rows.

Open happyhua opened this issue 5 years ago • 2 comments

This is a feature request.

I wonder if it is possible to disable (disallow) the selection of certain rows in the datatable.

It would be nice if MaterialDataTable provides you an API called for example: setRowSelectionEnabled(int index, boolean enabled);

Currently you can select any rows if SelectionType is MULTIPLE.

image

happyhua avatar May 16 '19 11:05 happyhua

Im pretty sure theres a way we can disable the selection. Go to gwt.material.design.client.data.SelectionType and datatable.setSelectionType(NONE)

kevzlou7979 avatar May 16 '19 13:05 kevzlou7979

But if you are referring to certain / specific row, then this might be a feature request

kevzlou7979 avatar May 16 '19 13:05 kevzlou7979