Aug 14, 2013, 9:33 PM
[OPEN] [#325] Filters not clearing
Hi,
I have a SelectBox with a default filter applied to hide the data until I can apply the real filter values and filter the data..
e.g.
Thanks,
I have a SelectBox with a default filter applied to hide the data until I can apply the real filter values and filter the data..
<ext:SelectBox runat="server" ID="SelectCarrier" FieldLabel="Carrier" AllowBlank="False"
ValueField="Id" DisplayField="Name" Flex="1" Name="CarrierId">
<Store>
<ext:Store runat="server" Data="<%# Model.Carriers %>" AutoDataBind="True" RemoteFilter="False">
<Filters>
<ext:DataFilter Property="GroupId" Value="-1" />
</Filters>
<Model>
<ext:Model runat="server" IDProperty="Id">
<Fields>
<ext:ModelField Name="Id" Type="Int" />
<ext:ModelField Name="UnitId" Type="Int" />
<ext:ModelField Name="GroupId" Type="Int" />
<ext:ModelField Name="HasCostMatrix" Type="Boolean" />
<ext:ModelField Name="Name" Type="String" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
This worked fine in 2.1 but when I call clearFilter() it doesn't seem to remove the original filter specified in the markup.e.g.
App.SelectCarrier.store.clearFilter()
And the data is still filtered even though the App.SelectCarrier.store.filters.length is zero...Thanks,
Last edited by Daniil; Aug 16, 2013 at 3:33 AM.
Reason: [OPEN] [#325]