Hi,
I'm using RadComboBox Templates with the "OnItemsRequested" event.
I have the following scenario:
The ItemTemplate width is about 2300px, and indeed the HeaderTemplate should be 2300px also. The dropdown width is set to 500px (due to the maximum container width). I can see the Horizontal Scroll when the data is bounded; however the scroll only affect the ItemTemplate and not the HeaderTemplate. I want the scrollbar to scroll also the HeaderTemplate so the Items and the Header are matching.
Please do let me know what is needed to be done.
Here is my code:
I'm using RadComboBox Templates with the "OnItemsRequested" event.
I have the following scenario:
The ItemTemplate width is about 2300px, and indeed the HeaderTemplate should be 2300px also. The dropdown width is set to 500px (due to the maximum container width). I can see the Horizontal Scroll when the data is bounded; however the scroll only affect the ItemTemplate and not the HeaderTemplate. I want the scrollbar to scroll also the HeaderTemplate so the Items and the Header are matching.
Please do let me know what is needed to be done.
Here is my code:
<
telerik:RadComboBox
ID
=
"ddHomeLocation"
runat
=
"server"
DropDownWidth
=
"500px"
EmptyMessage
=
"Choose a Location"
Skin
=
"Windows7"
HighlightTemplatedItems
=
"true"
EnableLoadOnDemand
=
"true"
Filter
=
"StartsWith"
Height
=
"200px"
Width
=
"500px"
OnItemsRequested
=
"ddHomeLocation_ItemsRequested"
OnLoad
=
"ddHomeLocation_Load"
>
<
HeaderTemplate
>
<
div
style
=
"width:2300px;height:50px; "
>
<
div
style
=
"float:left;width:90px"
>
<%= Session["LocationTypesLocationTypeCode"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["LocationTypesLocationTypeName"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:60px"
>
<%= Session["LocationsLocationID"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:60px"
>
<%= Session["LocationsLocationName"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:60px"
>
<%= Session["LocationsLocationCodeHome"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:70px"
>
<%# Session["LocationsLocationNameHome"].ToString()%></
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["LocationsLocationCodeCurrent"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["LocationsLocationNameCurrent"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["AddressesAddressName"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["AddressesAddress1"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["AddressesAddress2"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["AddressesCity"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["AddressesState"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["AddressesZip"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["AddressesCountry"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["LocationsBuilding"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["LocationsFloor"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["LocationsRoom"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["LocationsArea"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["LocationsAisle"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["LocationsShelf"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["LocationsBin"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["LocationsVIN"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["LocationsMake"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["LocationsModel"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["LocationsColor"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["LocationsLicensePlate"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["LocationsPalletteNumber"].ToString()%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%= Session["LocationsNotes"].ToString()%>
</
div
>
</
div
>
</
HeaderTemplate
>
<
ItemTemplate
>
<
div
style
=
"width:2300px;"
>
<
div
style
=
"float:left;width:90px"
>
<%# DataBinder.Eval(Container, "Attributes['LocationTypeCode']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['LocationTypeName']")%>
</
div
>
<
div
style
=
"float:left;width:60px"
>
<%# DataBinder.Eval(Container, "Attributes['LocationCode']")%>
</
div
>
<
div
style
=
"float:left;width:60px"
>
<%# DataBinder.Eval(Container, "Attributes['LocationName']")%>
</
div
>
<
div
style
=
"float:left;width:60px"
>
<%# DataBinder.Eval(Container, "Attributes['HomeLocationCode']")%>
</
div
>
<
div
style
=
"float:left;width:70px"
>
<%# DataBinder.Eval(Container, "Attributes['HomeLocationName']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['CurrentLocationCode']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['CurrentLocationNam']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['AddressName']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['Address1']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['Address2']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['City']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['State']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['Zip']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['Country']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['Building']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['Floor']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['Room']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['Area']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['Aisle']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['Shelf']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['Bin']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['VIN']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['Make']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['Model']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['Color']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['LicensePlate']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['PlateNumber']")%>
</
div
>
<
div
style
=
"float:left;width:80px"
>
<%# DataBinder.Eval(Container, "Attributes['Notes']")%>
</
div
>
</
div
>
</
ItemTemplate
>
</
telerik:RadComboBox
>