RadListBox

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

    Posted 20 Apr 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.

    Thanks!

  2. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    278 posts

    Posted 25 Apr 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">
        <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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top