Can't clear filters clientside

2 posts, 0 answers
  1. Jamel
    Jamel avatar
    1 posts
    Member since:
    Dec 2015

    Posted 01 Dec 2015 Link to this post

    Hello everyone,


    I have a small issue with clearin filter with my grid, the skin that I use is silk and has the EnableHeaderContextFilterMenu on "true". But when I want to use a different filter the other filters won't be cleared also when I call: grid.get_masterTableView().get_filterExpressions().clear(); . So how is it possible to clear all my filters after I fire a new on my grid>


    For filtering I use clientside script this is my script for filtering the grid,


    Thank you for your help. :)

    function AddFilterExpressionbetween(columnUniqueName, dataField, filterValueFirst, filterValueSecond) {
        var grid = $find("<%=RadGrid1.ClientID%>");
        grid.get_masterTableView().filter(columnUniqueName, startDate + " " + endDate, Telerik.Web.UI.GridFilterFunction.Between, true);



  2. Eyup
    Eyup avatar
    3819 posts

    Posted 03 Dec 2015 Link to this post

    Hi Jamel,

    If you are using server-side binding and want to clear the grid filtering from client-side action, you can achieve that by initiating a postback or AJAX request to the server:

    And clear the filters during ItemCommand event handler:

    Hope this helps.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top