My data is: "Test Data", this text have 2 spaces, but when i typing "test", filter auto trim space on my data and show "test data" and then grid filter wrong logic.
So what is solution in my case ?
1 Answer, 1 is accepted
answered on 06 Mar 2020, 03:44 PM
I have tried to reproduce the issue you are experiencing in the following dojo sample. I have tested to filter a data item - a string in which has two spaces between the two words. If I choose the filter operator "Is equal to" and type the string "Test Data1" (which has 2 spaces) it is filtered properly. Or if I choose operator "Starts with" and type "test" all the items that met the condition are displayed.
The Kendo UI Grid widget is not supposed to be modifying the user input by trimming additional whitespaces. Whereas a behavior of the browsers is to convert multiple whitespaces to one.
You could check if the value has whitespaces by specifying a template as it is shown in this article.
If I misunderstood your question could you modify the example above, so we could examine it?
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.