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

[Solved] Rad Control AllowFilteringByColumn

3 Answers 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vinay
Top achievements
Rank 1
Vinay asked on 16 Feb 2010, 04:35 AM
Hi I am trying to change the AllowFilteringByColumn Property of the radgrid to false / True via a button event click at run time. However I cannot see the change on the RadGrid when it executes. Any ideas ?

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 16 Feb 2010, 05:56 AM
Hi Maria Bell,

Here is the code snippet that I tried to set the AllowFilteringByColumn property for the grid from code behind.

CS:
 
    protected void Button1_Click(object sender, EventArgs e) 
    { 
        RadGrid1.MasterTableView.AllowFilteringByColumn = false
        RadGrid1.MasterTableView.Rebind(); 
    } 

Have you missed the Rebind() method?

-Shinu.
0
Vinay
Top achievements
Rank 1
answered on 17 Feb 2010, 04:30 AM
HI Shinu,

Thanks I did miss the rebind()...

How do i get to do this on the client side rather than via postback ?

thank you

Maria
0
Tsvetoslav
Telerik team
answered on 18 Feb 2010, 11:04 AM
Hello Maria,

Are you trying to hide the filtering item on the client? 

Regards,
Tsvetoslav
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Vinay
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Vinay
Top achievements
Rank 1
Tsvetoslav
Telerik team
Share this question
or