How to get selected row data with Editor?

How to get selected row data with Editor?

llampreallamprea Posts: 10Questions: 6Answers: 0

I need to send data from the selected row through ajax to a url in node.js,
Is there a way to accomplish this in editor?

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    Are you using TableTools for the row selection? If so you could use the fnGetSelectedData() method to get the selected data.

    Allan

  • llampreallamprea Posts: 10Questions: 6Answers: 0

    Once i have the data, how can i send it through an On remove event?
    i know create and edit send the objects and remove doesn't, but is there an option to do this with remove?

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    The preSubmit event can be used to modify the data object that Editor sends to the server. So for example if you need to send the data for the selected rows, as well as the ids that are used for deletion, you could use preSubmit to add the data retrieved from the TableTools API.

    Allan

This discussion has been closed.