Aug 06, 2014, 9:52 AM
[CLOSED] Unable to clear Combobox store filter
I have an add/edit form with a combo box in my web application, where I am using the same form to add multiple records.
Case 1 (working fine)
1. Open the add form.
2. Select a value from the combobox, fill in other fields and do save.
3. Edit form closes. New record is added to the list below.
4. Open the add form to add new record. Combobox shows all the values as expected.
Case 2 (issue)
1. Open the add form.
2. Type first 2-3 letters and select a value from the combobox, fill in other fields and do save.
3. Edit form closes. New record is added to the list below.
4. Open the add form to add new record. [B]Combobox shows the records filtered by the letters typed in the first instance.
I tried below code on button click (to open add form) to clear the filters but that doesn't seems to work.
<ext:TemplateColumn runat="server" ID="RelationshipType" Text="Relationship Type" DataIndex="RelationshipType" Width="300">
<Template runat="server">
<Html>
<span>{RelationshipDescription} {RelationshipTypeSuffix}</span>
</Html>
</Template>
<Editor>
<sds:ComboBox ID="ddlRelationshipType" runat="server" AllowBlank="false" IDMode="Static"
DisplayField="Value" ValueField="Key" Mode="Local" StoreID="StRelationshipType">
<SelectedItem Index="0" />
</sds:ComboBox>
</Editor>
</ext:TemplateColumn>
The edit form shows up on a button click. Case 1 (working fine)
1. Open the add form.
2. Select a value from the combobox, fill in other fields and do save.
3. Edit form closes. New record is added to the list below.
4. Open the add form to add new record. Combobox shows all the values as expected.
Case 2 (issue)
1. Open the add form.
2. Type first 2-3 letters and select a value from the combobox, fill in other fields and do save.
3. Edit form closes. New record is added to the list below.
4. Open the add form to add new record. [B]Combobox shows the records filtered by the letters typed in the first instance.
I tried below code on button click (to open add form) to clear the filters but that doesn't seems to work.
#{ddlRelationshipType}.store.clearFilter();
#{ddlRelationshipType}.store.filters.clear();
Last edited by Daniil; Aug 12, 2014 at 7:31 AM.
Reason: Please use [CODE] tags for all the code, [CLOSED]