Delete Selected Row

Delete Selected Row

jasonchua89jasonchua89 Posts: 4Questions: 0Answers: 0
edited May 2012 in DataTables 1.9
Hi,

I am new to using DataTables and I would first like to thank the developers for this. It's an amazing tool!

I am having a few problems now though. =( I am trying to implement the delete function for a selected row which was done successfully but I do not see a delete button anywhere to delete it. Am I missing something?

http://debug.datatables.net/obigez
http://live.datatables.net/umujux/2

Also, another thing I would like to implement is to delete multiple rows at one go but I don't know how. Can you guide me in the right path please?

Any help will be greatly appreciated.

Thanks.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi,

    In your example you have the delete function bound to the '#delete' element on the page - but there doesn't appear to be such a button. DataTables doesn't automatically add that button - but you can just stick it in the HTML like I have done with this example: http://live.datatables.net/umujux/3/edit .

    You might be interested in taking a look at Editor - Editor is a form control plug-in for DataTables that includes delete controls:

    Example: http://editor.datatables.net/release/DataTables/extras/Editor/examples/index.html
    Main site: http://editor.datatables.net/

    Editor also has examples PHP scripts for implementing the delete on the server-side and the protocol is well defined should you wish to use a different language on the server.

    Regards,
    Allan
  • jasonchua89jasonchua89 Posts: 4Questions: 0Answers: 0
    Thanks for that. It worked! =)
This discussion has been closed.