I have created a custom ascx control that has a multiple column combo box in it. I have noticed that when the list of items is longer than the max dropdown length the vertical scroll bar will shift to the right when the cursor is placed in the list. This is my code:
The attached jpg shows the scroll bar position before and after the cursor is placed in the combo box. The first row contains a blank record, which also shows up as a partial height to the actual items with data. Any explanation for the shifting scroll bar?
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="radCBOLookup.ascx.vb"
Inherits="HEW.radCBOLookup" %>
<
telerik:RadComboBox
ID
=
"radCBOLookup"
runat
=
"server"
MarkFirstMatch
=
"true"
AllowCustomText
=
"false"
Width
=
"50px"
DropDownWidth
=
"350px"
MaxHeight
=
"300px"
NoWrap
=
"true"
HighlightTemplatedItems
=
"true"
ExpandDirection
=
"Down"
>
<
HeaderTemplate
>
<
table
style
=
"width: 100%; text-align: left; font-size: 8pt"
>
<
tr
>
<
td
style
=
"width: 20%;"
>
Code
</
td
>
<
td
style
=
"width: 80%;"
>
Description
</
td
>
</
tr
>
</
table
>
</
HeaderTemplate
>
<
ItemTemplate
>
<
table
style
=
"width: 100%; text-align: left; font-size: 8pt"
>
<
tr
>
<
td
style
=
"width: 20%;"
>
<%#DataBinder.Eval(Container.DataItem, "Master_Type_Code")%>
</
td
>
<
td
style
=
"width: 80%;"
>
<%#DataBinder.Eval(Container.DataItem, "Master_Desc")%>
</
td
>
</
tr
>
</
table
>
</
ItemTemplate
>
</
telerik:RadComboBox
>
The attached jpg shows the scroll bar position before and after the cursor is placed in the combo box. The first row contains a blank record, which also shows up as a partial height to the actual items with data. Any explanation for the shifting scroll bar?