I have a Kendo UI grid with a variety of columns, including one that displays a calculated value for “Days Until Travel”, which is always an integer result.
One particularly thorough tester noted that when using the grid’s built-in numeric textbox filter, entered values were being displayed as decimal values, rather than integers, although the filtering was still working correctly.
This issue was not ranked as a “show stopper”, and I finally got around to looking into it today. A judicious search term brought me to this post in the Telerik forums that describes exactly how to customize the display of the filter for integer display, much to my surprise.
Like most grid customizations, the solution involves overriding the default behavior with a little bit of JavaScript, using the previously unknown (to me) UI extension to define a function that specifies a number format with zero decimal places. See the link above for the details.
Filed under: ASP.Net Tagged: Column, Filter, grid, Integer, kendo UI
