Search Filter help

Search Filter help

fusionzonefusionzone Posts: 7Questions: 0Answers: 0
edited July 2011 in General
Is there a way to call the removeSort function when a value is entered in the search box? and then call the enableSort if the value is removed? I have been trying to get this to work for several days to no avail.

[code]
function removeSort(){
$( "#example tbody" ).sortable( "option", "disabled", true );
}
function enableSort(){
$( "#example tbody" ).sortable( "option", "disabled", false );
}
[/code]

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    You would need to bind a custom filtering event handler (and unbind the default one) to the input box - similar to what is done here: http://datatables.net/plug-ins/api#fnSetFilteringDelay . Then your function would need to set the sorting as required using fnSort().

    Allan
This discussion has been closed.