Jun 10, 2011, 5:21 PM
[CLOSED] Store.reload() not being called in user control
I have two linked combo boxes in a user control.
When I make a selection in the first combo, the Select Listener is being called. The second combo value is cleared, the trigger is hidden and the trigger on the first combo appears. The problem is that the stContacts OnRefreshData method does not get executed.
First combo
What should I try to identify the problem?
When I make a selection in the first combo, the Select Listener is being called. The second combo value is cleared, the trigger is hidden and the trigger on the first combo appears. The problem is that the stContacts OnRefreshData method does not get executed.
First combo
<Listeners>
<Select Handler="#{Contact}.clearValue();#{Contact}.triggers[0].hide();#{stContacts}.reload();this.triggers[0].show();" />
<BeforeQuery Handler="this.triggers[0][ this.getRawValue().toString().length == 0 ? 'hide' : 'show']();" />
<TriggerClick Handler="if (index == 0) { this.clearValue(); this.triggers[0].hide(); }" />
</Listeners>
2nd combo <Listeners>
<Select Handler="this.triggers[0].show();" />
<BeforeQuery Handler="this.triggers[0][ this.getRawValue().toString().length == 0 ? 'hide' : 'show']();" />
<TriggerClick Handler="if (index == 0) { this.clearValue(); this.triggers[0].hide(); }" />
</Listeners>
<Store>
<ext:Store
runat="server"
ID="stContacts"
AutoLoad="false"
OnRefreshData="stContacts_Refresh"
RemotePaging="false">
<Proxy>
<ext:PageProxy />
</Proxy>
<Reader>
<ext:JsonReader >
<Fields>
<ext:RecordField Name="ContactID" Type="Int" />
<ext:RecordField Name="ContactName" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
</Store>
I have the same code in a page (not in a user control) and everything works great.What should I try to identify the problem?
Last edited by Daniil; Jun 13, 2011 at 3:58 PM.
Reason: [CLOSED]