Table with date range controls and buttons in last column

Table with date range controls and buttons in last column

jpeter82jpeter82 Posts: 4Questions: 0Answers: 0
edited March 2014 in General
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

Replies

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin
    Date range controller - try Daniel's YADCF plug-in: http://datatables.net/forums/discussion/15016

    > 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
This discussion has been closed.