ParamQuery grid support forum
General Category => Suggest new features => Topic started by: jplevene on June 29, 2024, 12:03:43 am
-
Adding a selectionModel.mode = "none" prevents rows, cells, columns, etc. from being selected which makes it good for a selector when there are checkboxes.
For example if I had a tree with checkboxes on each node and all I am using the tree for is selecting checkboxes, selecting a row, column or cell is of no use. This is evident on column filters (see here https://paramquery.com/pro/demos), there is no point having a selected row in the drop down filter.
Also it would be nice to have an option when clicking the whole row (outside the text) to select/deselect the checkbox
-
This feature is already present in the grid.
selection of rows, cells, columns, etc. can be prevented by setting selectionModel.type = null
-
Sorry, it didn't work in columnModel
selectionModel: {type:null},
-
To disable spreadsheet like row and column selections ( by clicking on the headers ), please set selectionModel.row and selectionModel.column to false
It's better to refer the API docs:
https://paramquery.com/pro/api#option-selectionModel
-
Thanks