General Category > ParamQuery Pro Evaluation Support

about selectionModel and SelectRow

(1/1)

fings:
excuse me,
when i set: 
selectionModel: { type: 'cell', row: true }
it's can selected row by number cell,

but, i want to get my SelectRow from this:
let sel = $pqgrid.SelectRow();
let selectArray = sel.getSelection();

it's hasn't any data, selectArray = []???

how can i get SelectRow?

thank you vary much

paramvir:
When selectionModel.type = 'cell' it turns on Range selections which work similar to a spreadsheet.

And for that there is different API.

https://paramquery.com/pro/api#method-Selection

fings:

--- Quote from: paramvir on January 21, 2021, 09:46:38 am ---When selectionModel.type = 'cell' it turns on Range selections which work similar to a spreadsheet.

And for that there is different API.

https://paramquery.com/pro/api#method-Selection

--- End quote ---

oh,thank you, at the same time, i have tryed,

$pqgrid.Selection().getSelection();

it's return array of all selected cells, i can get rowData in it ,thank you~~

fings:

--- Quote from: paramvir on January 21, 2021, 09:46:38 am ---When selectionModel.type = 'cell' it turns on Range selections which work similar to a spreadsheet.

And for that there is different API.

https://paramquery.com/pro/api#method-Selection

--- End quote ---

i have another idea: getRowsByClass; can i?

Navigation

[0] Message Index

Go to full version