This is a migrated thread and some comments may be shown as answers.

Filter among all columns

1 Answer 229 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bilal
Top achievements
Rank 2
Bilal asked on 21 Jun 2015, 05:21 PM

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

1 Answer, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 24 Jun 2015, 08:32 AM
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!
 
Tags
Grid
Asked by
Bilal
Top achievements
Rank 2
Answers by
Alexander Valchev
Telerik team
Share this question
or