How to add the HTML5 data-* attributes - cell data in ajax server side proccessing???

How to add the HTML5 data-* attributes - cell data in ajax server side proccessing???

rajaaarajaaa Posts: 21Questions: 10Answers: 2

How to add the attributes like
data-sort or data-order - for ordering data
data-filter or data-search - for search data
to the datable cells in ajax when getting data from server side processing...

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 54,909Questions: 1Answers: 8,606 Site admin
    Answer ✓

    To use orthogonal data with server-side processing, you wouldn't put the values into the HTML attributes - that would just be a performance hit since you would be writing them to the DOM and then reading them back. You can just keep it all in Javascript using the columns.render option as a function.

    Allan

This discussion has been closed.