I have a RadComboBox which is setup to populate the RadComboBoxItems as the user types in characters using a webservice.
Let's say the page was just loaded and the user hasn't clicked on the combobox yet. Meaning there are no values in the list yet.
How could I set the selected value of the combobox from a button click event?
I've seen code for the client side:
How can I set the value?
Let's say the page was just loaded and the user hasn't clicked on the combobox yet. Meaning there are no values in the list yet.
How could I set the selected value of the combobox from a button click event?
I've seen code for the client side:
<telerik:RadScriptBlock runat=
"server"
>
var
secCombo = $find(
"<%= rcbCombo.ClientID %>"
);
</telerik:RadScriptBlock>
secCombo.set_text(selectedName
);
secCombo.set_value(selectedValue);
I've also seen server side code like:
RadComboBoxItem
item = rcb_securities_list.FindItemByText(selectedName);
item.Selected =
true
;
But I think neither is working because either EnableAutomaticLoadOnDemand is enabled or due to the control has no values loaded yet.
How can I set the value?