Add edit/print/delete column with server side processing
Add edit/print/delete column with server side processing
James Payne
Posts: 15Questions: 0Answers: 0
Hello,
I'm using server side processing to get the data from a mysql database. I'm rendering six columns, the first one being the row id (incremental) and the others simply user data.
I would like to add a seventh column with 3 links in the same column cell to be able to add links to edit, print and delete the row like…
Edit - Delete - View
How can I add these links using the id from the first column I have already retrieved? Is it something I have to do in the php processing file or can I achieve this when initialising the table in jquery?
Thanks,
James
I'm using server side processing to get the data from a mysql database. I'm rendering six columns, the first one being the row id (incremental) and the others simply user data.
I would like to add a seventh column with 3 links in the same column cell to be able to add links to edit, print and delete the row like…
Edit - Delete - View
How can I add these links using the id from the first column I have already retrieved? Is it something I have to do in the php processing file or can I achieve this when initialising the table in jquery?
Thanks,
James
This discussion has been closed.
Replies
You may want to take a look at this to take care of your Edit/Delete links: http://datatables.net/blog/Inline_editing
As for the printing, that would mean, you utilize the TableTools plugin...but I haven't much tried to integrate the table tools in particular.... :)
http://www.datatables.net/forums/discussion/12801/datatables-with-php-mysql-and-have-links-or-options#Item_5