detecting changes in search box

detecting changes in search box

auroraaurora Posts: 5Questions: 0Answers: 0
edited March 2011 in General
Hi,

Is there a way to catch changes in search box instead of .keyup() event, which allows filtering when text is copy-pasted, or for example, a date selected from a date selector ?

Thanks in advance.

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    You can use fnDrawCallback to find when the table is redrawn, and there is a settings property (this.fnSettings().bFiltered) which indicates if the filter has been updated. For example:

    [code]
    "fnDrawCallback": function ( oSettings ) {
    if ( oSettings.bFiltered ) {
    ...
    }
    },
    [/code]
    Allan
This discussion has been closed.