Author Topic: edit multiple selected rows  (Read 2878 times)

angelahlp

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 51
    • View Profile
edit multiple selected rows
« 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?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: edit multiple selected rows
« Reply #1 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