2 posts, 0 answers
  1. Gary
    Gary avatar
    1 posts
    Member since:
    Jan 2016

    Posted 20 Apr 2016 Link to this post

    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.


  2. Veselin Tsvetanov
    Veselin Tsvetanov avatar
    1228 posts

    Posted 25 Apr 2016 Link to this post

    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">
            <input type="checkbox" class="rlbCheck">

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

    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.

    Veselin Tsvetanov
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top