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

CurrentFilterFunction & CurrentFilterValue not reset

1 Answer 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Aleš
Top achievements
Rank 1
Aleš asked on 15 Sep 2010, 11:09 AM
Hello,

we're programming a functionality to our RadGrids to be able to save current Filter settings to database for each user and to load up those settings again on page re-visit.
We're accessing CurrentFilterFunction/Value of RadGrid.MasterTableView to get the function and value of the filter to save in the database.
And Page_Load we read those functions and values from the database, set the CurrentFilterFunction/Value and compile a FilterExpression. Which all works fine, but when a user changes a filter, let's say in ColumnA from EqualTo to Contains, the CurrentFilterFunction will still hold "EqualTo" when saving, so I'm guessing that those values aren't getting reset on FilterCommand. If I catch the FilterCommand in RadGrids ItemCommand and reset it manually to "" the filtering stops working overall.

Regards

1 Answer, 1 is accepted

Sort by
0
Aleš
Top achievements
Rank 1
answered on 15 Sep 2010, 01:55 PM
Forgive my ignoracne. I was calling this function to load filters from DB in Page_Load without checking if it was a postback.
Problem resolved.
Tags
Grid
Asked by
Aleš
Top achievements
Rank 1
Answers by
Aleš
Top achievements
Rank 1
Share this question
or