Search code examples
twitter-bootstrapdatatablestabletoolsjquery-datatables-editor

How to get selected row data as javascript jsonObject from Datatables using Tabletools


I want to make an editable table from Datatables.

I want to develop the same functionality as provided by the Editor which is not open source.

The user should be able to select a row from the table and then click on an edit button to modify the contents of the row displayed by a bootstrap modal. Then on clicking on the update button in the modal, the modified row data should be sent to the server.

For implementing this, I read about the plug-in Buttons of the TableTools. But I don't know how to get the data from the tabletools as key value pairs in javascript.

I have found this, but it displays whole table data as a string.


Solution

  • Finally I have used my own code and shared it here .