How can I enable my new custom edit buttons.

How can I enable my new custom edit buttons.

ingezoneingezone Posts: 17Questions: 7Answers: 0

Link to test case: live.datatables.net/velofuma/1/edit
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem: I can't change the control code from the original edit buttons to my new custom edit buttons.

1.- My final purpose is to remove the original edit buttons (dom: "Bfrtip") and use only my custom buttons from the >Editor Control<

2.- How can I enable the Delete Record button in my code, to delete the selected row from the table.

Regards !

Answers

  • colincolin Posts: 15,118Questions: 1Answers: 2,583

    If you look at this example, that should get you going - it's showing how to do just that,

    Colin

  • ingezoneingezone Posts: 17Questions: 7Answers: 0

    Hi Colin

    Try to guide me with the example you sent me, but I couldn't get it, please check my code to help me find the problem.

    live.datatables.net/velofuma/2/edit

  • colincolin Posts: 15,118Questions: 1Answers: 2,583

    I've pasted the code from the example I linked to, and added a couple of classes to your buttons - see here.

    One thing to note is that you're adding the same ID to all delete buttons, #delete-btn - IDs need to be unique in the DOM.

    Colin

Sign In or Register to comment.