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

Setting filter function changes on postback

1 Answer 23 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 18 May 2012, 01:42 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
Princy
Top achievements
Rank 2
answered on 18 May 2012, 01:57 PM
Hi Tina,

Try the following code snippet to persist the setting.

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

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