Adding a dropdown box to DataTable
Adding a dropdown box to DataTable
jay113
Posts: 8Questions: 2Answers: 0
I am using DataTables and I need to have a drop down list in the last column furthest right. I need that drop down list to appear on every row once the data populates into the table. In addition, the drop down list data will be retrieved from a database. I am not sure how to go about adding the drop down box as I am new to using DataTables. Any help is appreciated.
This discussion has been closed.
Answers
You could use render() and return a string, you could use rowCallback and modify the data contents of each row, if you are passing your own Json data, you can just pass formatted HTML in the json data.
Code or links to examples will be most helpful...