I am using DNNGrid in ascx file (user control) in my DNN website. I am facing below problem :
Problem : when I click on filter button first time it works fine but from second time and on wards, CurrentFilterFunction shows previously selected value.
For example, when a page is load first time and If I select 'contains' it works fine but second time when I select 'startswith' then CurrentFilterFunction shows me 'contains'(Previous selected value) , then third time I select 'NoFilter' then CurrentFilterFunction shows me 'startswith'(Previous selected value).
Code :
<dnn:DnnGrid ID="gvParameterLookup" runat="server" AllowSorting="true" CellSpacing="0" OnSelectedIndexChanged="cbbDiscontinued_SelectedIndexChanged"
CellPadding="2" GridLines="none" HeaderStyle-CssClass="dnnGridHeader" AllowFilteringByColumn="true"
AutoGenerateColumns="false" AllowAutomaticUpdates="false" AllowPaging="false"
EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false">
<groupingsettings casesensitive="false" />
<mastertableview allowfilteringbycolumn="true" allowpaging="false">
<Columns>
<dnn:DnnGridTemplateColumn DataField="Subsystem" AllowFiltering="true" SortExpression="Subsystem" UniqueName="Subsystem" AutoPostBackOnFilter="True" HeaderText="Subsystem" >
<HeaderStyle Font-Bold="true" />
<HeaderTemplate>Subsystem</HeaderTemplate>
<ItemTemplate><%# Eval("Subsystem")%></ItemTemplate>
</dnn:DnnGridTemplateColumn>