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

[Solved] Save and restore filter

1 Answer 126 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
matthew
Top achievements
Rank 1
matthew asked on 06 Apr 2011, 04:56 PM
Hi,

I want save the filters used and as said in title restore the filter the next time the user comes.

I thinking of using a list of FilterDescriptor that I can easily fill with the GridCommand.FilterDescriptors.

But how can I load my filter ?

In my aspx I would like to do something like that:
.Filterable(filtering =>
            {
                for (int i = 0; i < Model.LstFilter.Count; i++)
                {    
                   if(Model.LstFilter[i].Operator.equals("Contains"){
                         filtering.Filters(filtre => filtre.Add(Model.LstFilter[i].Member).Contains(Model.LstFilter[i].Value.ToString())); 
                    }   

                }                
            })

1 Answer, 1 is accepted

Sort by
0
mike
Top achievements
Rank 1
answered on 18 Jan 2012, 02:45 PM
Did you find a solution for this? I am looking at something similar and was wondering if this worked for you.
Tags
Grid
Asked by
matthew
Top achievements
Rank 1
Answers by
mike
Top achievements
Rank 1
Share this question
or