Add edit/print/delete column with server side processing

Add edit/print/delete column with server side processing

James PayneJames Payne Posts: 15Questions: 0Answers: 0
edited January 2012 in DataTables 1.8
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

Replies

  • johnadamsyjohnadamsy Posts: 13Questions: 0Answers: 0
    @JamesPayne

    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.... :)
  • sadessades Posts: 10Questions: 0Answers: 0
    is there a way not with inline editing cause i just show 3 or 4 columns but i need to edit much more columns than that, i prefer to send the page to my edit.php?id=XX
  • girishmrgirishmr Posts: 137Questions: 0Answers: 0
    Please do not cross post. You already have one on this issue
    http://www.datatables.net/forums/discussion/12801/datatables-with-php-mysql-and-have-links-or-options#Item_5
This discussion has been closed.