I'm busy implementing filtering of RadComboBox items from the client-side by calling the .hide() method of the combobox-item.
This results in the items I specify to be hidden from view for the user.
The problem I find is that once I click the Combo that was filtered and I click anywhere else on the html page, the items that I had set to be hidden become visible again.
Right now I think:
- RadCombo is executing an event once the RadCombo is focused on (selected) and then looses focus. This event makes all the items visible again.
- or I am not using the .hide() method correctly and require instructions for proper use,
Here is an extract of the relevant parts of the ASPX control and JS client-side method:
// this function is called from client side event such as a button click or perhaps even by the
// OnClientSelectedIndexChanged event of another combo box(obviously it would need event params in that case).
projectCombo = GetProjectCombo();
// Get project combo items.
projectItems = projectCombo.get_items();
// loop through, hide * projects except the top 10
(i = 0; i < projectItems._array.length; i++)
(i < 10)
// Get Item, load its data.
item = projectItems.getItem(i);
itemValue = item.get_value();
// simplified for Telerik support.
// works temporarily until clicking on html body then it reverts back to original state.
//item.removeAt(i); // works and persists.
//item.disable(); // works and persists.
"<%= rcboProject.ClientID %>"
Telerik Controls Version: 2010.1.415.40
Your help would be greatly appreciated.