Extend Search Function

Extend Search Function

uderbentogluuderbentoglu Posts: 2Questions: 0Answers: 0
edited February 2014 in General
I am using datatables in my asp.net mvc application. I need to make some changes in _fnFilterCreateSearch function. But I don't want to change original function, because if it neeeds to update the library, it required to make same changes again. How can I extend this function without changing original function?
Thanks in advance.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Basically you can't - its a private function.

    What I would suggest is you create a custom feature plug-in which just calls fnFilter (which is basically all `_fnFilterCreateSearch` does after it has made the input box).

    See: http://datatables.net/blog/Creating_feature_plug-ins

    Allan
This discussion has been closed.