numeric Filter "is equal to" not working properly?

1 Answer 13 Views
Filter Grid
Ali
Top achievements
Rank 1
Ali asked on 07 Mar 2022, 01:40 PM

I faced an issue related to decimal filters.

the issue was "when I enter filer value "6167.1" which actually appears in a grid cell, no result is filtered out so while debugging I found that when data-source is provided to grid that value is actually 6167.07 and kendo jquery UI renders it 6167.1 in the grid.  So when I enter filter value "6167.07" it works and in grid value still appears/ shows 6167.1"

 

According to my understanding filter is working fine on the data source but while rendering it rounds up the data and shows a different value to the client due to which filter errors are reported. 

 

So I need help, please share the code snippet to turn off JS data rounding up used in this kendo library/plugin

1 Answer, 1 is accepted

Sort by
0
Georgi Denchev
Telerik team
answered on 10 Mar 2022, 09:25 AM

Hi, Ali,

Thank you for the provided screenshot.

You can configure the decimal points of the displayed value through the format configuration:

                    {
                      field: "Freight",
                      format: "{0:n2}" // This will display 2 decimal points. n3 - 3, n4 - 4, etc.
                    },

Sample result with "n1":

Sample result with "n2":

Runnable Dojo:

https://dojo.telerik.com/@gdenchev/iwAjiCOB 

Best Regards,
Georgi Denchev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Filter Grid
Asked by
Ali
Top achievements
Rank 1
Answers by
Georgi Denchev
Telerik team
Share this question
or