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

Checkboxes with ClientItemTemplates

1 Answer 82 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 04 Aug 2016, 12:04 PM

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

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 09 Aug 2016, 08:12 AM
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.
Tags
ComboBox
Asked by
Jon
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or