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

Possible to have more than 2 Filter parameters per column?

2 Answers 337 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Landon
Top achievements
Rank 2
Landon asked on 21 Feb 2014, 09:57 PM
Hi,

I'm wondering if it's possible to have more than 2 Filter Parameters on a single column on a Kendo Grid?

For example, on a "Colour" column, I would like to filter like so:

Contains: Green OR
Contains: Blue OR
Equals: Yellow OR
Equals: Orange

By default, it looks as though the Filter menu on the Kendo Grid only allows 2 Filter parameters.

Any information is appreciated!

Landon

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 24 Feb 2014, 04:23 PM
Hello Landon,

Applying an unlimited number of filter conditions is possible if you use the Grid datasource API:

http://docs.telerik.com/kendo-ui/api/framework/datasource#methods-filter

http://docs.telerik.com/kendo-ui/api/web/grid#fields-dataSource

If the multiple flter conditions should be defined by the user, then you will have to use some custom UI outside the Grid.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Landon
Top achievements
Rank 2
answered on 25 Feb 2014, 06:24 PM
Hi Dimo,

I was afraid I would get an answer like that. Looks like I'll have to go the custom route, as it would have to be defined by the user. 

Thanks for the resources.

Landon
Tags
Grid
Asked by
Landon
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Landon
Top achievements
Rank 2
Share this question
or