Hide Filter button for only one column

2 posts, 0 answers
  1. Nigel
    Nigel avatar
    11 posts
    Member since:
    Nov 2016

    Posted 25 Feb 2018 Link to this post

    HI how to hide the filter button in the filter dropdown for only a single column.

     

     

  2. Georgi
    Admin
    Georgi avatar
    658 posts

    Posted 27 Feb 2018 Link to this post

    Hi Nigel,

    Based on the provided information I assume that the requirement is to remove the filter button of the filter menu of a certain column. Please correct me if I am wrong.

    A possible solution is to attach a handler to the FilterMenuInit event and within that handler remove the filter button.

    e.g.

    //Attach event handler:
     
     .Events(x=> x.FilterMenuInit("onFilterMenuInit"))
     
    //Event handler:
        function onFilterMenuInit(e) {
            if (e.field == 'FieldName') {
                e.container.find('[type="submit"]').remove();
            }
        }
     

    Regards,
    Georgi
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top