Jul 06, 2012, 4:07 AM
[CLOSED] StringFilter and DateFilter activate/deactivate
Hi,
I have a requirement to provide a two-way feedback between the GridPanel filter activation checkbox and the filter items. Some time ago, I got a working solution on this forum for the ListFilter to achieve that:
I have a requirement to provide a two-way feedback between the GridPanel filter activation checkbox and the filter items. Some time ago, I got a working solution on this forum for the ListFilter to achieve that:
<ext:ListFilter DataIndex="Field1" StoreID="StoreOptions1"
LabelField="Field1">
<Listeners>
<Deactivate Handler="this.menu.items.each(function (item) {
item.setChecked(false);
});" />
</Listeners>
</ext:ListFilter>
I'm trying to accomplish the same feat for StringFilter and DateFilter. However, when I put the code below into the StringFilter Deactivate Listener definition, it doesn't activate when one types into the filter item textbox. I have to manually check off the activation checkbox for it to become active. It's back to normal without the listener.
<ext:StringFilter DataIndex="Field1">
<Listeners>
<Deactivate Handler="this.menu.items.each(function (item) {
item.setValue('');
});" />
</Listeners>
</ext:StringFilter>
Please suggest a workaround.
Last edited by Daniil; Jul 06, 2012 at 4:02 PM.
Reason: [CLOSED]