Posted 27 Feb 2013 Link to this post
<script type=
"text/javascript"
>
function
OnClientClicked(sender, args) {
var
textBox = $find(
'<%=RadTextBox1.ClientID %>'
);
// fetching the RadTextBox value
textboxValue = textBox.get_element().value;
combo = $find(
"<%= RadComboBox1.ClientID %>"
// Creating a new Item.
comboItem =
new
Telerik.Web.UI.RadComboBoxItem();
// Setting the fetched value as the Item text.
comboItem.set_text(textboxValue);
combo.trackChanges();
// adding item to radcombobox
combo.get_items().add(comboItem);
combo.commitChanges();
}
</script>
Posted 28 Feb 2013 Link to this post