Aug 31, 2015, 9:39 AM
[CLOSED] How to get the selected items from a multicombo via js
Hello,
I have a multicombo control. I have button next to it. My requirement is to disable the button when the unselects all the option in the multi combo. How can I achieve this in JS. I am trying to check the selected items on Multicombo's select and deselect listeners. But I am not being able to get the values. What property should I check to get the selected or deselected items.
I have a multicombo control. I have button next to it. My requirement is to disable the button when the unselects all the option in the multi combo. How can I achieve this in JS. I am trying to check the selected items on Multicombo's select and deselect listeners. But I am not being able to get the values. What property should I check to get the selected or deselected items.
<ext:MultiCombo ID="mltcmbWaterlineUnfunded" runat="server" LabelAlign="Left"
DisplayField="Name"
EmptyText="<%$ Resources:WebResource,WaterMark_Select%>" Resizable="false" Width="150">
<Items>
<ext:ListItem Text="Above" Value="1" />
<ext:ListItem Text="Below" Value="2" />
<ext:ListItem Text="Closed" Value="3" />
</Items>
<SelectedItems>
<ext:ListItem Text="Above" Value="1" />
</SelectedItems>
<Listeners>
<%-- <Select Handler="CheckForSelections();" />--%>
<BeforeDeselect Handler="CheckForSelections();" />
</Listeners>
</ext:MultiCombo>
Last edited by Daniil; Sep 01, 2015 at 10:26 PM.
Reason: [CLOSED]