This is a migrated thread and some comments may be shown as answers.

Disabled auto trim value text on grid filter

1 Answer 166 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nguyen
Top achievements
Rank 1
Nguyen asked on 05 Mar 2020, 03:57 AM

I have an issue on grid filter

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 ?

thank you

1 Answer, 1 is accepted

Sort by
0
Silviya Stoyanova
Telerik team
answered on 06 Mar 2020, 03:44 PM

Hello, Nguyen,

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?

Kind Regards, Silviya Stoyanova Progress Telerik

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.
Tags
Grid
Asked by
Nguyen
Top achievements
Rank 1
Answers by
Silviya Stoyanova
Telerik team
Share this question
or