accent insensitive filter

accent insensitive filter

dede26589dede26589 Posts: 10Questions: 0Answers: 0
edited January 2014 in DataTables 1.9
hi,

is it possible to do filter that is accent insensitive ?

Thanks

Replies

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Interestingly I just wrote a plug-in for exactly that today :-)

    https://github.com/DataTables/Plugins/blob/master/filtering/type-based/accent-neutralise.js

    It requires DataTables 1.10 which is pre-beta and can be obtained form the downloads page.

    Let me know how you get on with it.

    Allan
  • dede26589dede26589 Posts: 10Questions: 0Answers: 0
    thanks but , im using 1.9 version, so how to do for accent insensitive filters ?
  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    I'm not sure that 1.9 has that ability. I've never tried it at least...
  • dede26589dede26589 Posts: 10Questions: 0Answers: 0
    edited February 2014
    so, in "DataTables-1.9.4/media/src/core/" folder i have the core.filter.js.
    How to do with a plugin in order to override a function inside that file ?
    Something like that :

    jQuery.fn.dataTableExt.myfilter{

    // override the _fnDataToSearch ( sData, sType ) function

    }
  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Rather than modifying the core, I would suggest you use a type based filter as described here: http://datatables.net/development/filtering - which is basically what my 1.10 solution above does.

    Allan
  • dede26589dede26589 Posts: 10Questions: 0Answers: 0
    with $.fn.dataTableExt.afnFiltering.push( function( oSettings, aData, iDataIndex ) ,
    how to do to get the filter string typed by the user ?
  • andrecomputeroandrecomputero Posts: 1Questions: 0Answers: 0

    Hello Allan !

    I need your help, please !

    I have DataTables 1.10.2 and can't make your plugin work!

    My problem is just with this post, which doenst have an reponse:

    http://www.datatables.net/forums/discussion/19817/sort-without-accents

    Thank you so much !!

This discussion has been closed.