ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: tbum on June 30, 2022, 02:12:46 pm
-
selectionModel: {type: 'cell', mode: 'block', row: true, toggle: true,},
I have specified selectionModel as above.
What I want to do is make a block so that only cells in the same row as the cell that started the first selection are selected.
What can I do?
And no event handlers like beforeSelectChange ? This is to be able to invalidate when an unwanted area is selected.
The exact function I want to make is that I want the selectModel to work only for a specific area. Do you offer such a feature as an option?
Otherwise, I tried to develop it using an event handler.
-
There is no beforeSelectChange event but the selection can be adjusted in selectEnd event as per your requirement.
selectEnd: function(evt, ui){
debugger;
var address = ui.selection.address()[0];
this.Range({r1: address.r1, c1: address.c1, rc:1, cc: address.cc}).select();
}