I have a grid and I'd like to always apply two filter conditions it whenever the user filters the grid.
1) always filter a column based on a bool being false
2) always filter a column based on the value of a session variable
I can get 1) working easy enough with the following code
| <telerik:GridCheckBoxColumn DataField="IsOptimumStaff" |
| HeaderText="Active" CurrentFilterFunction="EqualTo" |
| CurrentFilterValue="false" Visible="false" /> |
But I can't get 2) to work I've tried
| <telerik:GridBoundColumn DataField="Region.RegionId" |
| HeaderText="Region Id" Visible="false" |
| CurrentFilterFunction="EqualTo" |
| CurrentFilterValue='<%= Session("CurrentRegion") %>' /> |
Is it even possible to do with markup or do I need to write some code behind? If so how do I have my own default filter items while preserving the users filter?
Thanks
Chris