Author Topic: multi select cells to delete values  (Read 2553 times)

Leo F

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 21
    • View Profile
multi select cells to delete values
« on: March 13, 2014, 08:56:36 am »
What would be a good approach to take to be able to select multiple cells and be able to call delete on them?
I know there is api already to allow selecting multiple cells, how can I check which ones are selected and do some kind of processing on them?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: multi select cells to delete values
« Reply #1 on: March 13, 2014, 09:12:37 am »
There is a getSelection method which returns selected rows / cells.

There are methods which allow to add, update / delete data i.e. addRow, updateRow, deleteRow.

You can also work directly with dataModel.data which is an array of objects.