This is a migrated thread and some comments may be shown as answers.

RadComboBox with checkboxes - how to check if value was changed

1 Answer 484 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Karel
Top achievements
Rank 1
Karel asked on 13 Feb 2014, 04:45 PM
Hi,

is there any event that is fired if value of combobox with checkboxes was changed? ( I need it to load items to dependent comboboxes) And I cannot use ItemChecked event, I need event that is fired after user closes dropdown, not event that is fired after each item is checked. TextChanged event is also useless in this situation because it works only if I select 1 item in combobox. SelectIndexChanged also doesn't work for more than one item.

So is there any way how to do that or do I have to use client-side events?

Thanks,
Karel Bem

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Feb 2014, 05:45 AM
Hi Karel,

You can handle the OnClientDropDownClosed event to achieve your scenario. This event will fire after the drop down list has been close. Please have a look into the following code snippet to get the CheckedItems of RadComboBox in OnClientDropDownClosed event. 

ASPX:
<telerik:RadComboBox ID="RadComboBox1" runat="server" CheckBoxes="true" OnClientDropDownClosed="OnClientDropDownClosed1">
    <Items>
        <telerik:RadComboBoxItem Text="Item1" />
        <telerik:RadComboBoxItem Text="Item2" />
        <telerik:RadComboBoxItem Text="Item3" />
    </Items>
</telerik:RadComboBox>

JavaScript:
<script type="text/javascript">
    function OnClientDropDownClosed1(sender, args) {
        var checkeditems = sender.get_checkedItems();
        //your code
    }
</script>

Thanks,
Shinu.
Tags
ComboBox
Asked by
Karel
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or