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

RadListBox

1 Answer 94 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 20 Apr 2016, 02:28 PM

For some reason, when I add the option to use checkboxes on my listbox, the text for the items become bold. Is there any way to prevent the text from becoming bold? I'm using the Bootstrap theme.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 25 Apr 2016, 08:19 AM
Hi Gary,

Attached you will find a sample web page implementing your scenario. As you can see, the RadListBoxes (the one with checkboxes and the one without) display the text of the items equally.

Possible reason for the difference that you have observed at your end could be the different elements that are actually rendered. When the items have their checkboxes enabled within each <li> element there is a <label> element with a <input type="checkbox"> and the actual text:
<li id="RadListBox1_i0" class="rlbItem rlbActive rlbSelected">
    <label>
        <input type="checkbox" class="rlbCheck">
        Argentina
    </label>
</li>

while the case without checkboxes does not have a <label> element and an <input>:
<li id="RadListBox2_i0" class="rlbItem rlbActive rlbSelected">
    Egypt
</li>

The possible change in the appearance could be caused by a custom CSS style applied on the <label> element.

Note that if the controls are in Classic RenderMode, the above will change as the item text will be enclosed in a <span> element for both with and without checkboxes modes.

Regards,
Veselin Tsvetanov
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
ListBox
Asked by
Gary
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or