This is a migrated thread and some comments may be shown as answers.

radCombobox Selected item display

1 Answer 147 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
gsw0321
Top achievements
Rank 1
gsw0321 asked on 17 Feb 2009, 08:22 PM
I have a form with several radcomboboxes and a few buttons and textboxes.  Each combobox has an empty Text Message that displays in gray italics.  In the webform, you can select an item in the combobox using the dropdown UI or you can also click on an ad on the side of the page and the item is selected for you using javascript.

When the item is selected using javascript it displays the text for the item (as though it is actually selected), but the text is rendered with the Empty Item Text Style.  So, it looks like the item was not selected.

Hope that makes sense.  Please let me know if there is something I need to do to get the selected item to display properly.

1 Answer, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 18 Feb 2009, 10:27 AM
Hi Brian,

I suggest you add the following code snippet to your javascript function before selecting an item:

comboBox.get_inputDomElement().className = "rcbInput"

Hope it's ok now.

Regards,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ComboBox
Asked by
gsw0321
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or