intercepting/hijacking sort function?

intercepting/hijacking sort function?

kirkjerkkirkjerk Posts: 23Questions: 5Answers: 0

My company is standardizing on datatables, but my project doesn't fit perfectly well in either the regular client side mode or the serverSide mode - (our API is too slow and serves up one-level hierarchical data that we then flatten on the client side)

In effect, then, we are trying to roll our own version of something like the old 1.9 "infinite scrolling", where sorting and filtering actually takes place on the server, and certain conditions can trigger a "load more" behavior.

How can I intercept sorting clicks so that datatables doesn't actually rearrange the data, but my client then knows to trigger a clear() and append() ?

This discussion has been closed.