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

filter

1 Answer 17 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sigma
Top achievements
Rank 1
Sigma asked on 06 Aug 2012, 01:08 PM
Setting CurrentFilterFunction=Contains defaults to no filter while setting AutoPostBackOnFilter  as true.How to persist this setting?

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 06 Aug 2012, 01:24 PM
Hi,

Try the following code snippet to maintain the CurrentFilterFunction to Contains even after PostBack.

C#:
protected override void OnPreRender(EventArgs e)
{
    base.OnPreRender(e);
    RadGrid1.Columns[0].CurrentFilterFunction = GridKnownFunction.Contains; //for first column
    RadGrid1.Rebind();
}

Thanks,
Shinu.
Tags
Grid
Asked by
Sigma
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or