Append Export button outside data-table

Append Export button outside data-table

jemsjems Posts: 2Questions: 2Answers: 0

I am using export flash and want to move export button outside of my datatable. Any suggestion???

This question has an accepted answers - jump to answer

Answers

  • bindridbindrid Posts: 730Questions: 0Answers: 119

    Probably the fastest way is to use the jquery detach function, which will detach the node without removing events, and append it to a new location.

  • allanallan Posts: 61,970Questions: 1Answers: 10,160 Site admin
    Answer ✓

    Have a look at this example.

    It happens to use Bootstrap styling (which you might or might not), and it also happens to move the buttons inside the DataTable container - you could change that selector to put them anywhere you want.

    Allan

This discussion has been closed.