Unable to read the data with button click

Unable to read the data with button click

v3nkyv3nky Posts: 46Questions: 11Answers: 0

****http://live.datatables.net/japeyavu/7/edit****:

Description of problem: I am trying to read the selected record datatable data from the live example above mentioned but unable to fetch it . It says table.row() is not a function. Also I have tried hiding the column and read the value of hidden column and it did not work either.

Please advise how to fix it.

Answers

  • kthorngrenkthorngren Posts: 20,269Questions: 26Answers: 4,765

    The first problem is you are getting this error in the browser's console:

    Uncaught TypeError: Cannot read property 'mData' of undefined

    You have 7 columns but only defined 6 in Datatables.

    this in table.row( this ).data() in your button click event isn't the radio button nor the row. You need to fetch the checked radio button. Here is the updated test case:
    http://live.datatables.net/gasorise/1/edit

    Kevin

This discussion has been closed.