Hide filter icon for column and set filter type

2 posts, 1 answers
  1. Bob
    Bob avatar
    123 posts
    Member since:
    Sep 2012

    Posted 17 Dec 2014 Link to this post

    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)));
  2. Answer
    Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 19 Dec 2014 Link to this post

    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.

     
Back to Top