fnGetHiddenNodes() for DataTables 1.10?

fnGetHiddenNodes() for DataTables 1.10?

blitzmannblitzmann Posts: 4Questions: 0Answers: 0
edited January 2014 in General
I'm currently running a recent nightly snapshot of DataTables 1.10 (1.9 had too many bugs / issues). I'm interested in getting the number of hidden rows when using filtering, however the plugin example no longer works due to a overhaul in the API. Since 1.10 is still in development, I don't expect this to really go anywhere, but I was wondering if anyone knows how to port this plugin over if it's even possible. I've looked at the source a bit, but can't wrap my head around it...

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    I've just committed a change to make fnGetHiddenNodes compatible with 1.10:

    Change set: https://github.com/DataTables/Plugins/commit/34eec35
    New file: https://github.com/DataTables/Plugins/blob/master/api/fnGetHiddenNodes.js

    I plan to go through all the API plug-ins and make them all compatible before 1.10.0 is released, although probably not before the beta.

    I had thought that 1.10 has a nice simple way of doing this with its new API, but I don't see it at the moment... So I've stuck with the old method combined with a sprinkling of the new :-)

    Allan
  • blitzmannblitzmann Posts: 4Questions: 0Answers: 0
    Wow, thanks so much for the quick update!

    For documentation (maybe someone will find this useful from a google search), I changed it a tad as I'm currently using functions that are outside Datatables to show/hide rows, but am using Datatables for sorting and text filtering. I hope to port my custom functions over to Datatables when time permits, but for now this works.

    My custom filtering simply hide()s and show()s the row, so I simply check to see if that row has a display:none as a style attribute:

    [code] /* Remove nodes which are being displayed */
    for ( var i=0 ; i
This discussion has been closed.