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

Clear filter expresssion in radgrid

1 Answer 256 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Karthik
Top achievements
Rank 1
Karthik asked on 15 Jun 2011, 02:04 PM

Hi i am implemented radgrid filter in my code.

I do the following steps:

I have dropdown as filter in one of the column and two datepickers in other column
When i filter using the dropdown and clearing it works fine,
But when i filter using date pickers and clearing it ,The grid result set is filtered.

Now when I provide a new search condition and click on the Go button, the radgrid is populated but the filter condidtion provided in the previous case in not cleared.
Can someone provide me the code to clear the filter expression ???

It is extremely urgent. 




Thanks & Regards 
Karthik

1 Answer, 1 is accepted

Sort by
0
Casey
Top achievements
Rank 1
answered on 17 Jun 2011, 06:22 PM
Karthik,

On the click of the Go button, could you try executing the following code to see if it clears the filter on you RadGrid? 

I hope this helps!
Casey

RadGrid1.MasterTableView.FilterExpression = "";
// Replace column1 with the UniqueName of the column containing the filter expression that won't go away
GridColumn column1= RadGrid1.MasterTableView.GetColumnSafe("column1");
column1.CurrentFilterFunction = GridKnownFunction.NoFilter;
column1.CurrentFilterValue = "";


Tags
Grid
Asked by
Karthik
Top achievements
Rank 1
Answers by
Casey
Top achievements
Rank 1
Share this question
or