Kendo Grid kendo-grid-string-filter-cell not allowing negative zeroes

1 Answer 133 Views
Filter Grid
Jason
Top achievements
Rank 1
Jason asked on 28 Feb 2023, 01:18 AM | edited on 28 Feb 2023, 01:21 AM

Whenever i tried to key in a negative sign "-", followed by a zero. the grid filter will automatically change it to zero.

how can i prevent it from automatically changing?

need to maintain a numeric filter, (no letters allowed)

 

Code:

<kendo-grid-column field="xx" title="xx">
<ng-template kendoGridFilterCellTemplate let-filter let-column="column">
<kendo-grid-numeric-filter-cell
[showOperators]=false
[column]="column">
</kendo-grid-numeric-filter-cell>
....
<kendo-grid-column>

1 Answer, 1 is accepted

Sort by
0
Veselin
Telerik team
answered on 02 Mar 2023, 01:53 PM

Hi Jason,

The behavior you are describing seems strange as the "-" sign is supported in the Kendo UI for Angular Grid filter.

I tried to reproduce this scenario but I could not get the same behavior by using the FilterCellTemplateDirective or via the regular Kendo UI for Angular Grid filtering method: 

https://stackblitz.com/edit/angular-6fbe1z-eqze7p 

My suspicion is that you could be using an outdated version of the Grid component in which this behavior has not been fixed.

Could you please share the current Angular and Grid versions you are using so I can investigate this further? 

Thank you.

Regards,
Veselin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Filter Grid
Asked by
Jason
Top achievements
Rank 1
Answers by
Veselin
Telerik team
Share this question
or