Clear filter of one column

Hi there,
I want to clear the filter of a column when a user selects "All" option in the filter template dropdown. I tried using Grid.ClearFiltering("Rejected") (Rejected is the name of the column), but it doesn't clear the filter of "Rejected" column. Am I doing something wrong?

1 Reply

RS Renjith Singh Rajendran Syncfusion Team February 25, 2020 06:47 AM UTC

Hi Preity, 

Thanks for contacting Syncfusion support. 

We suggest you to pass an array of string values as argument for the “ClearFiltering” method of Grid. Please use the code below, 

 
        EjsGrid<Order> Grid; 
        public void onclick() 
        { 
            Grid.ClearFiltering(new string[]{"CustomerID"}); 
        } 


Please get back to us if you need further assistance. 

Regards, 
Renjith Singh Rajendran. 


Loader.
Up arrow icon