You can use attributes to achieve this functionality when RadComboBox is bound to a Web service.
In the .cs file where the items are loaded, you can add attributes to the RadComboBoxItemData object and in the client SelectedIndexChanged event do the following to set text in the input area:
function OnClientSelectedIndexChanged(sender, args) {
var item = args.get_item();
if (item != null) {
sender.set_text(item.get_text() + " + " +
item.get_attributes().getAttribute("test"));
}
}
(See attached files.)
I hope this helps.
All the best,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.