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

Hide Filter button for only one column

1 Answer 266 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nigel
Top achievements
Rank 1
Nigel asked on 26 Feb 2018, 03:32 AM

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

 

 

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 27 Feb 2018, 03:14 PM
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.
Tags
Grid
Asked by
Nigel
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or