- Home
- Forum
- JavaScript - EJ 2
- Diacritics fitering
Diacritics fitering
Hello,
while I add filtering customization inside DropDownList component I lose some functionality.
while I add filtering customization inside DropDownList component I lose some functionality.
filtering: (e) => {
let query = new ej.data.Query();
query.addParams("selectedId", selectedId);
query.addParams("searchTerm", e.text);
e.updateData(_customerDatasource, query);
},
DataSource that I use is previously fetched in array.
https://ej2.syncfusion.com/javascript/documentation/drop-down-list/filtering/#diacritics-filtering
for example in array i have "ŠiŠ" and I expect that sis or šiš would return this item with "šiš".
https://ej2.syncfusion.com/javascript/documentation/drop-down-list/filtering/#diacritics-filtering
for example in array i have "ŠiŠ" and I expect that sis or šiš would return this item with "šiš".
I use 18.1.45 version of library ( will update in few weeks, I have some problem with customization and newer version of library - if I update some things not working as before ).
KR,
Ivan
KR,
Ivan
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
SN
Sevvandhi Nagulan
Syncfusion Team
January 12, 2021 09:32 AM UTC
Hi Ivan,
Greetings from Syncfusion support.
We checked your query. We suggest you to pass the fifth argument in the query property as true to filter the diacritics character. Please refer the below code,
|
filtering: function(e) {
var dropdown_query = new ej.data.Query();
// frame the query based on search string with filter type.
dropdown_query =
e.text !== ""
? dropdown_query.where("Name", "startswith", e.text, true, true)
: dropdown_query;
// pass the filter data source, filter query to updateData method.
e.updateData(data, dropdown_query);
}
|
Please find the sample below,
Please check the above sample and get back to us if you need further assistance.
Regards,
Sevvandhi N
IV
Ivan
January 17, 2021 01:01 PM UTC
Hello,
this is working for new version of library, with my current is not working.
My goal is to update library, so I could have this functionality.
KR,
Ivan
this is working for new version of library, with my current is not working.
My goal is to update library, so I could have this functionality.
KR,
Ivan
SN
Sevvandhi Nagulan
Syncfusion Team
January 18, 2021 06:47 AM UTC
Hi Ivan,
Thanks for the update.
We suggest you to upgrade the Syncfusion package to latest version to get rid of the reported issue. Please refer the below latest cdn in the application.
|
<script src="https://cdn.syncfusion.com/ej2/dist/ej2.min.js" type="text/javascript"></script>
|
Regards,
Sevvandhi N
Marked as answer
SIGN IN To post a reply.