I have a radComboBox that I populate with data from a datatable. We do not allow custom text, so the first record is blank in case a user doesn't want to save any data from the comboBox. If the comboBox is loaded with items in the aspx page:
the first highlighted row will have the same height as the rows with data.
If the comboBox is loaded from a datatable, the first row height is about 1/4 the height of the rows with data. See the attached jpg. Is there a way to make all the rows the same height when loaded from a datatable. I did try this with different skins and got the same effect.
The comboBox is actually part of an ascx control used for lookup items and is fully dynamic. All I have to do is set a property for the type of lookup data the box will self load.
I am using Telerik.Web.UI version 2011.2.712.35
<
telerik:RadComboBox
ID
=
"RadComboBox1"
runat
=
"server"
AllowCustomText
=
"false"
MarkFirstMatch
=
"true"
Width
=
"100px"
DropDownWidth
=
"150px"
MaxHeight
=
"350px"
NoWrap
=
"true"
HighlightTemplatedItems
=
"true"
ExpandDirection
=
"Down"
>
<
Items
>
<
telerik:RadComboBoxItem
Text
=
" "
Value
=
""
/>
<
telerik:RadComboBoxItem
Text
=
"Female"
Value
=
"F"
/>
<
telerik:RadComboBoxItem
Text
=
"Male"
Value
=
"M"
/>
<
telerik:RadComboBoxItem
Text
=
"Unknown"
Value
=
"U"
/>
</
Items
>
</
telerik:RadComboBox
>
If the comboBox is loaded from a datatable, the first row height is about 1/4 the height of the rows with data. See the attached jpg. Is there a way to make all the rows the same height when loaded from a datatable. I did try this with different skins and got the same effect.
<
telerik:RadComboBox
ID
=
"RadComboBox1"
runat
=
"server"
AllowCustomText
=
"false"
MarkFirstMatch
=
"true"
Width
=
"100px"
DropDownWidth
=
"150px"
MaxHeight
=
"350px"
NoWrap
=
"true"
HighlightTemplatedItems
=
"true"
ExpandDirection
=
"Down"
>
<
ItemTemplate
>
<
table
style
=
"width: 110px; text-align: left; font-size: 8pt"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
width
=
"110px"
>
<%#DataBinder.Eval(Container.DataItem, "LookUp_List_Description")%>
</
td
>
</
tr
>
</
table
>
</
ItemTemplate
>
</
telerik:RadComboBox
>
I am using Telerik.Web.UI version 2011.2.712.35