Instance search
Instance search
shajuantony
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
This discussion has been closed.
Answers
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
actually it works fine in another table except a specific page
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
it working for mari but not for mary and won
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
ormari
. 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
using simple code
$('#example').dataTable({
"aaSorting": [
[0, "desc"]
]
});
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
please check the image
its working after upgrade DataTable
@version 1.9.4 To 1.10.15
but not sure the exact reason
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
No, the above image is without filter word mary and its working after upgrade the datatable js as above said
Thank you Kevin