RadGrid's filter button property 'CurrentFilterFunction' showing previous selected value
I am have gone through the below steps and facing some issues :
(1) Page load first time -> CurrentFilterFunction shows 'NoFilter' -> works fine
(2) Enter text in TextBox -> Press tab -> CurrentFilterFunction shows 'Contains'-> works fine
(3) Enter text in TextBox-> press filter button -> select 'DoesNotContains' from drop down list -> CurrentFilterFunction shows 'Contains'(wrong value, it should shows
'DoesNotContains' )
(4) Enter text in TextBox -> press filter button -> select 'StartsWith' from drop down list -> CurrentFilterFunction shows 'DoesNotContains'(wrong value, , it should
shows 'StartsWith')
can anyone please tell me the reason of this behavior and what is the solution of it.
below is the code snippet :
<telerik:RadGrid ID="gvParameterLookup" runat="server" AllowSorting="true" CellSpacing="0"
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>
<telerik:GridTemplateColumn DataField="Subsystem" SortExpression="Subsystem" CurrentFilterFunction="Contains"
UniqueName="Subsystem" AutoPostBackOnFilter="True" HeaderText="Subsystem">
<HeaderStyle Font-Bold="true" />
<HeaderTemplate>Subsystem</HeaderTemplate>
<ItemTemplate><%# Eval("Subsystem")%></ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</mastertableview>
<clientsettings enablepostbackonrowclick="false" />
</telerik:RadGrid>
I am have gone through the below steps and facing some issues :
(1) Page load first time -> CurrentFilterFunction shows 'NoFilter' -> works fine
(2) Enter text in TextBox -> Press tab -> CurrentFilterFunction shows 'Contains'-> works fine
(3) Enter text in TextBox-> press filter button -> select 'DoesNotContains' from drop down list -> CurrentFilterFunction shows 'Contains'(wrong value, it should shows
'DoesNotContains' )
(4) Enter text in TextBox -> press filter button -> select 'StartsWith' from drop down list -> CurrentFilterFunction shows 'DoesNotContains'(wrong value, , it should
shows 'StartsWith')
can anyone please tell me the reason of this behavior and what is the solution of it.
below is the code snippet :
<telerik:RadGrid ID="gvParameterLookup" runat="server" AllowSorting="true" CellSpacing="0"
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>
<telerik:GridTemplateColumn DataField="Subsystem" SortExpression="Subsystem" CurrentFilterFunction="Contains"
UniqueName="Subsystem" AutoPostBackOnFilter="True" HeaderText="Subsystem">
<HeaderStyle Font-Bold="true" />
<HeaderTemplate>Subsystem</HeaderTemplate>
<ItemTemplate><%# Eval("Subsystem")%></ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</mastertableview>
<clientsettings enablepostbackonrowclick="false" />
</telerik:RadGrid>