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

Can user show/hide column filter?

1 Answer 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Darin
Top achievements
Rank 1
Darin asked on 03 Apr 2013, 01:05 PM
Currently I'm displaying the filters for each column. The users want to show/hide the filters. What's the easiest way to allow the user to show/hide these column filters?

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 08 Apr 2013, 07:51 AM
Hello Darin,

A possible approach is to change the AllowFilteringColumn property on some event. For instance you could show/hide the filter texboxes on button click.
Mark-Up:
<asp:Button Text="Show/Hide Filter" ID="Button1" OnClick="Button1_Click" runat="server" />
C#:
protected void Button1_Click(object sender, EventArgs e)
    {
        RadGrid1.AllowFilteringByColumn = !RadGrid1.AllowFilteringByColumn;
        RadGrid1.Rebind();
    }


Greetings,
Kostadin
the Telerik team
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 their blog feed now.
Tags
Grid
Asked by
Darin
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or