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

A Few UI Questions

2 Answers 58 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 17 Jan 2013, 05:18 AM
Please take a look at the attached screenshots.  The lowermost dropdown listbox is your RadComboBox.

The first screenshot shows the user selecting an item in the list.  The second screenshot shows the selected item after the list has collapsed.

Both of my questions concern the second screenshot:
  1. How/where can I change how the selected info is displayed?  Ideally I'd like to add some spaces after the "Pass" value (the "240" in the example).  I'd also like to make the "Pass" value bold if I could.
  2. The yellow background highlighting is because of some global jQuery code that automatically sets the background of all textboxes on each form to yellow upon receiving focus and then removes the yellow when focus is lost.  The code looks like this:
            $(":text").focus(TextboxHighlightAndSmartSelect).blur(TextboxRemoveHighlight);
    This works great and has no effect on the traditional DropDownList control.  However, I believe it's doing its thing on your control because of the TextBox component inside it.  Ideally I'd prefer not to mess with the global jQuery code and instead would just like to nullify the added "focus" event handler for the RadComboBox only.  I tried a few things to do this but couldn't figure it out.

Robert

2 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Zhekov
Telerik team
answered on 22 Jan 2013, 12:18 PM
Hi,

1. Adding space after the value
-- that's not possible, as the value is pure text and not html; you could try adding extra text in original text and it will reflect the combo;
1.1. Making the value bold
Use the following snippet:

html .RadComboBox .rcbInput {
    font-weight: bold;
}


2. Yellow background fix: the following snippet should do the trick

.RadComboBox .rcbInput {
    background: none !important;
}

What it does is to try to override any inline styles that are set to the inputs. The success of this override depends on how this yellow background was achieved with jQ.

Kind regards,
Ivan Zhekov
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.
0
Robert
Top achievements
Rank 1
answered on 24 Jan 2013, 12:49 AM
Thanks on all fronts, Ivan.  It all works great!
Tags
ComboBox
Asked by
Robert
Top achievements
Rank 1
Answers by
Ivan Zhekov
Telerik team
Robert
Top achievements
Rank 1
Share this question
or