ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: jplevene on April 20, 2026, 05:03:59 am

Title: selectModel bug
Post by: jplevene on April 20, 2026, 05:03:59 am
Setting selectModel to below:

Code: [Select]
selectionModel: { type:"row", mode:"single", column:false, all:false, toggle:false},
Even though toggle is false, it still toggles.

My temporary fix for anyone else with the same issue is below:

Code: [Select]
rowClick: function(event, ui) {
var sel = that.grid.pqGrid("SelectRow");
if( !sel.isSelected({rowIndx:ui.rowIndx }) )
sel.add({rowIndx:ui.rowIndx});
},
Title: Re: selectModel bug
Post by: paramvir on April 20, 2026, 07:10:48 am
It works as documented in the API

When false/undefined:

Clicking an unselected row replaces the whole selection
Clicking a selected row clears all selection
Ctrl + click needed to add/remove rows from selection


When true:

Clicking an unselected row adds it to selection
Clicking a selected row removes it