Filter columns with type="number"

2 posts, 0 answers
  1. Michael
    Michael avatar
    3 posts
    Member since:
    Jan 2017

    Posted 10 Feb Link to this post

    We want to filter all grid columns by a single input-field. When we define the type of one column as number, the filter doesn't work.  

    http://dojo.telerik.com/@brandung/uTaGE/5

  2. Dimiter Topalov
    Admin
    Dimiter Topalov avatar
    633 posts

    Posted 14 Feb Link to this post

    Hello Michael,

    Trying to perform string operations on a number leads to a JavaScript error. A possible solution is to check the type of the respective field before deciding what kind of filter should be applied to it, e.g.:

    http://dojo.telerik.com/ugEJU

    I hope this helps, but please mind that this custom filtering scenario is not officially supported, and any further adjustments are a subject of custom implementation.

    Regards,
    Dimiter Topalov
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top