ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: angelahlp on February 20, 2014, 10:13:09 am

Title: edit multiple selected rows
Post by: angelahlp on February 20, 2014, 10:13:09 am
Hi - I would like to allow the user to select multiple rows and then edit those rows. I have been looking through the docs and forums and I see how to select multiple rows - but I don't see anything about how to then do something with those rows once they are selected. Can anyone point me in the right direction?
Title: Re: edit multiple selected rows
Post by: paramvir on February 20, 2014, 05:28:24 pm
Selections and editing are independent of each other. Actually when you start editing, all the selections go away.

So try to do this:

Listen to rowSelect/ rowUnSelect event, add a class to the rows which are selected.

In the editable callback check whether current row (ui.rowData) has the class. If yes, then return true else return false.

http://paramquery.com/pro/api#option-editable