Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8695243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:58:58+00:00 2026-06-13T00:58:58+00:00

I am using a Telerik RadGrid and have custom filters set up on some

  • 0

I am using a Telerik RadGrid and have custom filters set up on some of the columns.
As part of that custom filter (which is just a textbox) I also have a button that when clicked I want to clear the filter value for that particular column only.

I have the button working and am setting the filter for the particular column to an empty string, then rebinding the grid but this does not remove the filter value.

It seems that only modifying the grid.MasterTableView.FilterExpression actually affects the filter but how can I remove just one column’s filter values from the FilterExpression?

<telerik:RadTextBox ID="RdTxtC" EmptyMessage="Search" runat="server" EmptyMessageStyle-Font-Italic="true"
    CssClass="padtop4" HoveredStyle-Font-Italic="true" ClientEvents-OnKeyPress="filterC"
    InputType="Text" Width="80%">
</telerik:RadTextBox>
<asp:Button ID="ibtnClearFilterTown" ClientIDMode="Static" runat="server" CssClass="clearFilterButton" OnClick="ibtnClearFilterTown_Click"/>

In the code-behind:

protected void ibtnClearFilterTown_Click(object sender, EventArgs e)
{
    RgClientList.MasterTableView.GetColumnSafe("TownCity").CurrentFilterValue = String.Empty;
    RgClientList.Rebind();
}

It seems a fairly simple requirement to remove the filter for a single column so i think I must be missing something obvious – any help is appreciated….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:58:59+00:00Added an answer on June 13, 2026 at 12:58 am

    Go ahead and try this instead of what you have in your code:

    protected void ibtnClearFilterTown_Click(object sender, EventArgs e)
    {
       RgClientList.MasterTableView.GetColumnSafe("TownCity").CurrentFilterFunction = GridKnownFunction.NoFilter;
       RgClientList.MasterTableView.GetColumnSafe("TownCity").CurrentFilterValue = String.Empty;
       RgClientList.Rebind();
    
    }
    

    Also, according to this question asked on SO, you may need to change the following property on your Radgrid:

    EnableLinqExpressions="False"
    

    EDIT 1: (put this in the button press)

    I understand this looks like a lot to do what you wish, but I checked the documentation for Telerik and did not see an easy way of simply removing one filter string from the MasterTableView.FilterExpression. This is mainly due to the way each column stores its filter as text and not the value that goes into the final filter string.

    I’ll walk you through the steps involved below:

    • It creates a collection of filters from each column, removes the one you do not want (columnwhosfilteryouwantremoved), and then loops through the columns and clears the column you wish to set = “”
    • Then it sets the the filter for the grid to its new value and then rebinds.

      String MasterFilterExp = "";        
      
      var tempCollection = (from String sFilt in RadGrid1.MasterTableView.FilterExpression.Split(new string[] {"AND"},StringSplitOptions.None)
                         where sFilt.Contains("[columnnameoffilteryouwantremoved]") != true 
                         select sFilt).ToArray();
      
      MasterFilterExp = string.Join(" AND ", tempCollection);
      
      foreach (GridColumn column in RadGrid1.MasterTableView.Columns)
      {
          if (column.UniqueName == "columnnameoffilteryouwantremoved")
          {                
              column.CurrentFilterFunction = GridKnownFunction.NoFilter;
              column.CurrentFilterValue = String.Empty;
          }            
      }
      
      RadGrid1.MasterTableView.FilterExpression = MasterFilterExp;
      RadGrid1.Rebind();                        
      

    It can probably be simplified, but let me know if you have any questions. I tested it and was able to remove a column’s filter from the grid and rebind to show the updated info.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using RadGrid for Asp.Net Ajax (from Telerik) I need to re-set the CurrentPageIndex. Some
I have a telerik radgrid that is doing an insert using an objectdatasource. The
I'm using a Telerik RadGrid with custom paging. My problem is that when I
I have just come across a Casting Exception while using the Telerik RadGrid. It
I have a Telerik RadGrid in which I'm implementing custom paging binding to a
Using VS2008, and Telerik radGrid version 2010.1.519.35 I have a about 50 DNN modules
There are so many columns on my Telerik RadGrid that I want to make
I have a Telerik RadGdir that loads data dynamically using OnNeedDataSource. Once all the
I'm using Telerik RadGrids and I have RadDatePickers for columns with type of DateTime.
I am using Telerik RadGrid and I have a data source where one of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.