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

Hide filter icon for column and set filter type

1 Answer 713 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 17 Dec 2014, 10:23 PM
Hi, for a filterable grid column, I would like to set the filter type to "contains" and hide the filter icon.  Is this possible?  Below is column I am working with.

This was easily achievable in Telerik AJAX grid but I have trouble navigating documentation for Kendo.  It took me a while to dig through forum posts to find how to set the filter control width.

columns.Bound(m => m.PatientName).Title("Patient Name").Width(170).Filterable(f => f.Cell(c => c.InputWidth(130)));

1 Answer, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 19 Dec 2014, 12:36 PM
Hello Bob,

In order to achieve the desired functionality, you will need to set the Operator to "contains" and set ShowOperators to false. Similar to the following:

.Filterable(ftb => ftb.Cell(cell => cell.Operator("contains").ShowOperators(false)))

Similar setup is demonstrated in this online demo.

Regards,
Rosen
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Bob
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or