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

Column filters add to built in filters?

3 Answers 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 13 Jan 2015, 11:39 AM
When enabling filtering is there any way to add additional operators to the various types strings, numbers, dates, booleans and provide custom filter function code.

e.g. string currently has the following

Is equal to
Is not equal to
Starts with 
Contains
Does not contain
Ends with

Can I add something along the lines of Sounds like option with a function which performs the actual soundex based comparison?

3 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 15 Jan 2015, 08:23 AM

Hello Jason,

There isn't built-in way of adding new filters in the UI as the widget doesn't *know* how to translate them to filter descriptors supported by the DataSource and apply them.

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Jason
Top achievements
Rank 1
answered on 15 Jan 2015, 09:42 AM
I thought that the datasource operator could be set to be a function? Although looking at the documentation its not documented that way, I know I use that ability in a few places maybe why I thought it might be possible via the grid. I'll see if there's another way I can achieve what i way looking for, thanks for the response.

Jason
0
Nikolay Rusev
Telerik team
answered on 19 Jan 2015, 07:47 AM

Hello Jason,

Indeed using operator as a function is possible, but this will not work with filtering on server. It will be only applicable if you use client side filtering.

Regards,
Nikolay Rusev
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
Jason
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Jason
Top achievements
Rank 1
Share this question
or