Author Topic: selectModel bug  (Read 603 times)

jplevene

  • Pro Ultimate
  • Full Member
  • *
  • Posts: 210
    • View Profile
selectModel bug
« 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});
},

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6552
    • View Profile
Re: selectModel bug
« Reply #1 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