1
Help for ParamQuery Pro / Re: setSelection changes page
« on: September 20, 2018, 12:59:20 am »
Found it...
I changed rowIndx to rowIndxPage
also, bear in mind that index has to be a INT, otherwise "selection" with rowIndxPage will return undefined, at least in 3.3.2.
I changed rowIndx to rowIndxPage
Code: [Select]
var isSelected = _self.SearchGrid.pqGrid("selection", { type: 'row', method: 'isSelected', rowIndxPage: index }
if (!isSelected) {
_self.SearchGrid.pqGrid("setSelection", { rowIndxPage: index });
}
also, bear in mind that index has to be a INT, otherwise "selection" with rowIndxPage will return undefined, at least in 3.3.2.
Code: [Select]
var pqRowIndx = $(this).attr("pq-row-indx");
var index = parseInt(pqRowIndx);