Separating internal rebuild from fnUpdate?

Separating internal rebuild from fnUpdate?

yvsongyvsong Posts: 2Questions: 0Answers: 0
edited June 2011 in DataTables 1.8
The 5th param of fnUpdate determines whether to rebuild the internal data structures, and is better set as false for performance. Sometimes it's inconvenient to decide which update is the last. For example, when walking through the list of rows and test some condition to decide whether to update the row. Is it better to separate internal rebuild from fnUpdate, by providing fnRebuild and delete the 5th param of fnUpdate (meaning always false)?

Replies

  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin
    There isn't a built in API for doing that, but it should be relatively simple to pull out the relevant code from fnUpdate and create an API plug-in function which would do it: http://datatables.net/development/api

    Allan
This discussion has been closed.