Instance search

Instance search

shajuantonyshajuantony Posts: 7Questions: 1Answers: 0

i am using datatable in my internal purpose application
in one of my page, search is not triggering for specific words like mary, mar, won

please help

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • shajuantonyshajuantony Posts: 7Questions: 1Answers: 0
    edited December 2019

    actually it works fine in another table except a specific page

  • kthorngrenkthorngren Posts: 21,330Questions: 26Answers: 4,951

    It seems strange that search wouldn't trigger for certain words. Assuming you are using client side processing searching defaults to using smart mode which might result in more matching search results than you think. What happens if you type mar1?

    If you want to see if the search is triggering you can use the search event to console.log output each time the search triggers.

    Kevin

  • shajuantonyshajuantony Posts: 7Questions: 1Answers: 0

    it working for mari but not for mary and won

  • kthorngrenkthorngren Posts: 21,330Questions: 26Answers: 4,951
    edited December 2019

    Can you provide an example with your data showing the issue?

    Without seeing the problem it will be impossible to diagnose. Searching will always trigger whether you type mary or mari. There must be other matches in your table that you are not aware of.

    Are you using a custom search that you built?

    Are you using server side processing?

    Kevin

  • shajuantonyshajuantony Posts: 7Questions: 1Answers: 0

    using simple code
    $('#example').dataTable({
    "aaSorting": [
    [0, "desc"]
    ]
    });

  • kthorngrenkthorngren Posts: 21,330Questions: 26Answers: 4,951

    More import is an example of your data that is not working. Can you build an example for us please?
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

  • shajuantonyshajuantony Posts: 7Questions: 1Answers: 0

    please check the image

  • shajuantonyshajuantony Posts: 7Questions: 1Answers: 0

    its working after upgrade DataTable
    @version 1.9.4 To 1.10.15
    but not sure the exact reason

  • kthorngrenkthorngren Posts: 21,330Questions: 26Answers: 4,951

    Are you saying it is working now?

    The screenshot only shows me that you have a row with Mary. Is this after trying to search?

    Kevin

  • shajuantonyshajuantony Posts: 7Questions: 1Answers: 0
    edited December 2019

    No, the above image is without filter word mary and its working after upgrade the datatable js as above said

    Thank you Kevin

This discussion has been closed.