Table with date range controls and buttons in last column
Table with date range controls and buttons in last column
Hi Allan,
I've just found your page, I think this is exactly what I've been looking for. I'd like to make a table on my website with rows queried from a mysql database, something like this with date range controls (the user sets the dates):
https://datatables.net/release-datatables/extras/TableTools/index.html
Additionally, I need a last column in the table, that contains a button for every row. When the user clicks a button at a row, then I have to update a field for that record in a mysql table.
Is it possible to do it with datatables? Could you please help?
Thanks,
Peter
I've just found your page, I think this is exactly what I've been looking for. I'd like to make a table on my website with rows queried from a mysql database, something like this with date range controls (the user sets the dates):
https://datatables.net/release-datatables/extras/TableTools/index.html
Additionally, I need a last column in the table, that contains a button for every row. When the user clicks a button at a row, then I have to update a field for that record in a mysql table.
Is it possible to do it with datatables? Could you please help?
Thanks,
Peter
This discussion has been closed.
Replies
> Additionally, I need a last column in the table, that contains a button for every row.
Use mRender or sDefaultContent (mRender if it needs to be dynamic using the data for that row, sDefaultContent if it is just static content) and a standard jQuery event listener that will trigger whatever up you need. Here is an example of that with Editor: https://editor.datatables.net/release/DataTables/extras/Editor/examples/inlineControls.html
Allan