I have a CheckBoxList control within a RadComboBox. The code in my aspx is as follows:
<
radC:RadComboBox ID="NursingStatusRCB" runat="server" Width="185px" Height="100%" Skin="WebBlue">
<Items>
<radC:RadComboBoxItem runat="server" Text="Status (APN, RN, etc.)" />
</Items>
<ItemTemplate>
<div onclick="stopPropagation(event);">
<asp:CheckBoxList ID="NursingStatusCBL" runat="server" CssClass="field_box" BorderStyle="None"></asp:CheckBoxList>
</div>
</ItemTemplate>
</radC:RadComboBox>
In my code behind, I bind a datatable to the checkboxlist.
When the text associated with a checkbox is wider than that provided by the dropdown, it breaks onto a new line. The second line of text is aligned underneath the checkbox. The problem is that this doesn't look good at all, so we want to have the second line of text line up with the first line of text. Can anyone offer help on how to have the text line up with itself in this manner?
Alternatively, we could adjust the width of the DropDown of the radComboBox (using DropDownWidth) to allow enough room for the text so it doesn't break onto 2 lines. The problem we face there though is that the data populating the CheckBoxList comes from our DB, so at design time, we don't know what the width of the box needs to be. I tried setting this value as 100%, but it gets interpreted as 100px.
Thanks for any assistance you can provide.
Karl