Hide filter for a column in a Pivot Grid

2 posts, 0 answers
  1. Rama
    Rama avatar
    3 posts
    Member since:
    Jun 2012

    Posted 20 Nov 2013 Link to this post

    I have been using the telerik controls for my asp.net web application, I have used PivotGrid telerik control and I have set filters for all the columns in it. Now I need one column filter to be hidden, Is this possible? If so could you tell me how this can be achieved. I have attached an image that has the layout of my requirement.
  2. Konstantin Dikov
    Konstantin Dikov avatar
    2137 posts

    Posted 25 Nov 2013 Link to this post

    Hello Rama,

    With the current implementation of the RadPivotGrid, you could not set any property to disable filtering for particular field/column, but you could try searching for the filter button within the RadPivotGrid and set the visible property to false. Here is a code snippet with the described approach:
    protected void RadPivotGrid1_PreRender(object sender, EventArgs e)
        Control filterButton = FindControlRecursive(RadPivotGrid1, "StationName_FilterPictButton");
        if (filterButton != null)
            filterButton.Visible = false;
    public static Control FindControlRecursive(Control control, string id)
        if (control == null) return null;
        Control ctrl = control.FindControl(id);
        if (ctrl == null)
            foreach (Control child in control.Controls)
                ctrl = FindControlRecursive(child, id);
                if (ctrl != null) break;
        return ctrl;

    Hope that helps.

    Konstantin Dikov
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top