Load on demand does not populate drop down list with list items when using IE8. It works properly in FF and it has worked in previous versions of IE. I’ve downloaded the latest builds with the same results.
Is there a fix for this?
<!---- RAD CARRIER COMBOBOX ----->
<
telerik:RadComboBox
ID
=
"radCarrierID"
runat
=
"server"
EmptyMessage='<%# GetResourceValue("Txt:PleaseSelect", "VFB")%>' ShowToggleImage="True" ShowMoreResultsBox="true"
EnableLoadOnDemand="True" OnItemDataBound="radCarrier_ItemDataBound"
DropDownWidth="423px" Width="260px" OnClientFocus="ClearCarrierOnFocus" OnClientBlur="OnCarrierBlur" OnClientSelectedIndexChanged="HandleEndChangingCarrier" Skin="Outlook" OnItemsRequested="radCarrierID_ItemsRequested" EnableVirtualScrolling="true">
<
HeaderTemplate
>
<
table
style
=
"text-align: left"
>
<
tr
>
<
td
style
=
"width: 225px;"
>
Carrier
</
td
>
<
td
style
=
"width: 125px;"
>
City
</
td
>
<
td
style
=
"width: 25px;"
>
St
</
td
>
</
tr
>
</
table
>
</
HeaderTemplate
>
<
ItemTemplate
>
<
table
style
=
"text-align: left"
>
<
tr
>
<
td
style
=
"width: 225px;"
>
<%# DataBinder.Eval(Container.DataItem, "Name") %>
</
td
>
<
td
style
=
"width: 125px;"
>
<%# DataBinder.Eval(Container.DataItem, "City") %>
</
td
>
<
td
style
=
"width: 25px;"
>
<%# DataBinder.Eval(Container.DataItem, "St") %>
</
td
>
</
tr
>
</
table
>
</
ItemTemplate
>
</
telerik:RadComboBox
>
protected void radCarrierID_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
{
try
{
// create in memory datatable
DataTable tblName = new DataTable();
tblName.Columns.Add("NameID");
tblName.Columns.Add("Name");
tblName.Columns.Add("City");
tblName.Columns.Add("St");
e.Message = "No Matches";
if (e.Text != "")
{
WhereClause wc = new WhereClause();
OrderBy orderBy = new OrderBy(false, true);
orderBy.Add(CarrierTable.Carrier_Lookup_Name, OrderByItem.OrderDir.Asc);
string strFilter = "Carrier_Lookup_Name like '" + e.Text.Replace("'", "''") + "%'";
SqlFilter objFilter = new SqlFilter(strFilter);
wc.AddFilter(objFilter, CompoundFilter.CompoundingOperators.And_Operator);
int intTotalCount = CarrierTable.GetRecordCount(wc);
int itemOffset = e.NumberOfItems;
int intPage = itemOffset / ItemsPerRequest;
int endOffset = Math.Min(itemOffset + ItemsPerRequest, intTotalCount);
e.EndOfItems = endOffset == intTotalCount;
if (itemOffset <= intTotalCount)
{
foreach (CarrierRecord itemValue in CarrierTable.GetRecords(wc, orderBy, intPage, ItemsPerRequest))
{
tblName.Rows.Add(new string[] { itemValue.Carrier_ID.ToString(), itemValue.Carrier_Lookup_Name.ToString(), itemValue.Carrier_CitySpecified ? itemValue.Carrier_City.ToString() : "", itemValue.Carrier_StateSpecified ? CarrierTable.Carrier_State.Format(itemValue.Carrier_State.ToString()) : "" });
}
}
e.Message = String.Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", endOffset, intTotalCount);
}
// radShipperID.DataTextField = "Name;City;St";
radCarrierID.DataValueField = "NameID";
radCarrierID.DataSource = tblName;
radCarrierID.DataBind();
}
catch (Exception ex)
{ e.Message = "Error: " + ex.Message; }
}
Phil