Probleme with Individual column searching (text inputs)

Probleme with Individual column searching (text inputs)

Ludoludo75Ludoludo75 Posts: 41Questions: 8Answers: 0
edited March 2018 in Free community support

I don't know why but I have a problem with this code :

https://datatables.net/examples/api/multi_filter.html

When I write in the input, search displays "no results"
Really weird.

Any solutions ?

Thank you

Answers

  • kthorngrenkthorngren Posts: 20,378Questions: 26Answers: 4,781

    Without seeing your code its hard to say. Can you post a link to your page or provide a test case with the issue?
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

  • Ludoludo75Ludoludo75 Posts: 41Questions: 8Answers: 0

    Oh really good this sandbox, i love

    There (same problem) : http://live.datatables.net/hikoyino/2/edit?html,js,output

    thank you

  • kthorngrenkthorngren Posts: 20,378Questions: 26Answers: 4,781
    Answer ✓

    Thanks for the test case. Through process of elimination the problem seems to be with this line:
    "url": "//cdn.datatables.net/plug-ins/1.10.16/i18n/French.json",

    I'm not sure why or if this is a known issue. @allan or @colin should be able to help understand why this is not working. Here is your working example with that line commented out:
    http://live.datatables.net/hikoyino/3/edit

    Kevin

  • Ludoludo75Ludoludo75 Posts: 41Questions: 8Answers: 0

    Oh thank you,

    Really weird.... ah ah ah, I didn't think about that.

    I hope Allan or Colin could be able to answer me.

  • allanallan Posts: 61,853Questions: 1Answers: 10,134 Site admin
    Answer ✓

    The language.url option makes the initialisation of the table async, so you need to put any code that is dependent on the table being initialised (in this case the search inputs) into the initComplete function.

    This is your example updated with that change: http://live.datatables.net/hikoyino/4/edit .

    Allan

  • allanallan Posts: 61,853Questions: 1Answers: 10,134 Site admin
    Answer ✓

    Actually - one question for you @Ludoludo75 - are you a native French speaker? With the alphabet search input, would you expect to see separate characters in the alphabet list for those with accents or not? At the moment I've not attempted to provide any localisation of the alphabet...

    Allan

  • Ludoludo75Ludoludo75 Posts: 41Questions: 8Answers: 0

    Oh Ok thank you,
    I thought about this but I've prefered to do the same as written in comments of the page. My fault.

    For the alphabet : No!! Ahahah, I saw that, I did a hidden column because my "É" and "Î" it was not the same like "E" and "I", but in French you group them without any difference.
    so with PHP I did a column to catch the first letter of the data (name of client - column 4) and transform it without accent ^^, then I put this letter without accent in one hidden column "letter", and I linked the alphabet search with this column "letter" (0 in my case) and order of datatables is the "name" of the client (column 4) and contact's name of the client (column 5)

  • allanallan Posts: 61,853Questions: 1Answers: 10,134 Site admin
    Answer ✓

    in French you group them without any difference

    Perfect - thanks! I've got some ideas for how to improve the the alphabet search for accents as well as DataTables core :).

    Allan

This discussion has been closed.