Ordering data on deferred (or Scrollable) renders

Ordering data on deferred (or Scrollable) renders

rrauenzarrauenza Posts: 2Questions: 1Answers: 0

I'm trying to understand how deferred renders (or using Scroller) supports sorting the columns.

It appears that DataTables relies on the HTML <td> data-order attribute...

I'm assuming I'll need some kind of callback to set the data-order attribute as the table is rendered ... but if the cells aren't rendered yet as html, how does the sorting work? Or filtering for that matter as well?

Is there some way to define a field in the data as the data-order?

Answers

  • rrauenzarrauenza Posts: 2Questions: 1Answers: 0

    Ah - I'm reading this at the moment and it appears we can somehow index the data for sort/search/display.

    I'm still curious how deferred sorts without this, though.

This discussion has been closed.