Jun 05, 2014, 1:04 PM
[CLOSED] Method not fired when no records selected in TreePanel
On the form places TreePanel and ComboBox. When I change combobox some data must be taken from TreePanel or alert must be showed if no records selected. But if no records selected in TreePanel SelectedItemActivationComboBoxSelect not fired by select event. How I can do it?
<ext:ComboBox ID="SelectedItemActivationComboBox" ValueField="categoryId" DisplayField="category" Editable="false" Disabled="true" Margins="15 0 15 0" Flex="1" runat="server">
<Store>
<ext:Store runat="server" ID="SelectedItemActivationComboBoxStore">
<Model>
<ext:Model runat="server" ID="SelectedItemActivationComboBoxStoreModel">
<Fields>
<ext:ModelField Name="categoryId" />
<ext:ModelField Name="category" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<DirectEvents>
<Select OnEvent="SelectedItemActivationComboBoxSelect">
<ExtraParams>
<ext:Parameter Name="nodeId" Value="#{SourceDbTreePanel}.getSelectionModel().getSelection()[0].data.id" Mode="Raw" />
<ext:Parameter Name="categoryId" Value="#{SelectedItemActivationComboBox}.getValue()" Mode="Raw" />
</ExtraParams>
</Select>
</DirectEvents>
</ext:ComboBox>
Last edited by QuAzI; Jun 05, 2014 at 3:20 PM.