Filter among all columns

2 posts, 1 answers
  1. Bilal
    Bilal avatar
    109 posts
    Member since:
    Oct 2014

    Posted 21 Jun 2015 Link to this post

    Hello,

    I am planning to add an All-Columns-Grid filtering option. The grid contains multi-type columns, like string, numeric, and date data types.

    I could add a TextBox inside the Toolbar, however, to implement the filtering, I might add several filters one for each column in the Grid, casting the value entered to each column's data type. Would that be a viable solution?

    On the other hand, is there an out of the box solution for the above?

     

    Best regards

    Bilal

  2. Answer
    Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 24 Jun 2015 Link to this post

    Hi Bilal,

    Kendo Grid does not support multi-type columns. DataSource's schema allows the developer to assign single value type for each of the DataSource fields, one Grid column can be bound to only one DataSource field.

    In case you have column that displays different fields I am afraid that I cannot offer a solution.

    In case you want to filter on multiple columns (each column displays single data field) you may use TextBox and filter method of the DataSource.

    Through the filter method you can filter on multiple fields at once. For example: http://jsfiddle.net/valchev/MG89G/

    Regards,
    Alexander Valchev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top