Checkboxes with ClientItemTemplates

2 posts, 0 answers
  1. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 04 Aug 2016 Link to this post

    Hi

    When using a combobox that has a client item template ("#= Nme ## if(!Ena){# <span class=""disabled""> (disabled)</span> #}#") I find that when checkboxes are enabled the checkbox appears on the line above the template text.  I have tried using the nowrap method along with white-space and word-break styles with no luck.

    The online demos shows each modes independantly but not having seen them together I don't know if this is my code or a fundamental issue with the control.  Any ideas for a fix?

    Regards

    Jon

  2. Dimitar
    Admin
    Dimitar avatar
    351 posts

    Posted 09 Aug 2016 Link to this post

    Hi Jon,

    The checkboxes are placed inside label which is styled with display: block rule. You may overwrite it as follows:

    <style type="text/css">
        html body form .RadComboBoxDropDown .rcbItem > label,
        html body form .RadComboBoxDropDown .rcbHovered > label,
        html body form .RadComboBoxDropDown .rcbDisabled > label,
        html body form .RadComboBoxDropDown .rcbLoading > label,
        html body form .RadComboBoxDropDown .rcbCheckAllItems > label,
        html body form .RadComboBoxDropDown .rcbCheckAllItemsHovered > label {
            display: inline-block;
        }
    </style>

    Regards,
    Dimitar
    Telerik by Progress
    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