custom toolbar

custom toolbar

AloneInTheDarkAloneInTheDark Posts: 30Questions: 7Answers: 0

Hi
i have add a new button (copy record) in toolbar (see https://datatables.net/examples/advanced_init/dom_toolbar.html).
But now i have these problem:

=> how I can disable button when no row select?
=> how i can retrive row IDs when row is selected?

tnk

Answers

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin

    Can you not just use Buttons? It has these features built in. You can use your own code if you wish, but you'd need to code it up yourself if you want, but its already done for you.

    Allan

  • AloneInTheDarkAloneInTheDark Posts: 30Questions: 7Answers: 0

    Hi Allan,
    can you send me a example?

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin

    The documentation for custom buttons includes a number of examples. If you would like me to create a custom example for you, that would be covered under the priority support options.

    Regards,
    Allan

This discussion has been closed.