I started to write my first app with Kendo UI. Most of the work will be done on the Kendo Grid by filtering, sorting and manipulating values.
The grid itself seems to be pretty powerful and suits my needs quite well. However, it looks like I am not able to fulfill all my filtering needs using the regular built-in filtering functions.
For instance: I need to be able to filter all the items from a column having some special characters in them. Special characters are input by the user via k-textbox.
I already wrote a JS function that returns true/false depending on whether the given string contains any of the special character present in the k-textbox.
How could I bind this function as a filter operator for column filtering? I would like to have it on the client side so that I don’t need to send data back and forth all the time. I tried searching for solutions from the forum and the web in general, but I am still a bit lost.
It would be neat if I could use it as a string filter operator like the built-in filters, something like this:
Any ideas and help are welcome. Thank you!
The grid itself seems to be pretty powerful and suits my needs quite well. However, it looks like I am not able to fulfill all my filtering needs using the regular built-in filtering functions.
For instance: I need to be able to filter all the items from a column having some special characters in them. Special characters are input by the user via k-textbox.
I already wrote a JS function that returns true/false depending on whether the given string contains any of the special character present in the k-textbox.
How could I bind this function as a filter operator for column filtering? I would like to have it on the client side so that I don’t need to send data back and forth all the time. I tried searching for solutions from the forum and the web in general, but I am still a bit lost.
It would be neat if I could use it as a string filter operator like the built-in filters, something like this:
filterable: {
operators: {
string: {
contains:
"Contains"
,
eq:
"Is equal to"
,
special:
"Contains special characters"
,
}
}
},
Any ideas and help are welcome. Thank you!