I have several ComboBoxes on a page that use the new(ish) checkbox feature for each item. When the user clicks a Clear button, I would like to uncheck any checked items in each Combobox, and if necessary, reset to the EmptyMessage. This does not seem to work:
12 Answers, 1 is accepted
Is there any way I can loop through only a collection of the selected items on a given Combobox? One of mine has over 1,000 items in it and is noticable slow looping through to try and determine if there are any to uncheck. ???
As is described in the help article that I’ve already mentioned: “get_checkedItems: gets an array of the checked RadComboBoxItem objects”.
Please use the length property of the array.
Additionally I am not sure that your approach for unchecking items is precise enough, please try the code above:
the Telerik team
This is the default behavior of RadComboBox EmptyMessage property. The EmptyMessage property of the RadComboBox enables the ability to set any text in the input field of the control. This text is not visible when the combobox gets the focus and appears again on blur if no item is selected. So when the selections are cleared EmptyMessage will automatically come.
I am getting following error.When I use the above code.
Object doesn't support property or method 'get_checkedItems'
The get_checkedItems method is available and it does return the collection of the checked items for a given RadComboBox. Please make sure that you have correctly acquired a reference for the RadComboBox object that you invoke the method on.
Finally I got some reply form this telerik forum. Nice to see.
This method works fine If i test in server not working when I test locally using VS2012.
Again thanks for the reply.
Excellent - Working fine, Thank you