I have implemented the search in rad combo, on writing the some text in drop down it fetch data from server using itemrequested event.
it is working in all the browser except IE9
<telerik:RadComboBox ID="ddlHIPOs" NoWrap="true" Visible="false" runat="server" DropDownWidth="320px"
MarkFirstMatch="false" EnableLoadOnDemand="true" CssClass="HIPOCandidateDropDown"
DropDownCssClass="HIPOCandidateDropDown" AppendDataBoundItems="false" ItemsPerRequest="8"
EnableViewState="true" Width="200px" expandeffect="Slide" AllowCustomText="true"
OnItemsRequested="ddlHipos_ItemsRequested" OnClientDropDownOpening="SaveText"
OnClientDropDownClosing="SetText" ItemRequestTimeout="500" OnClientItemsRequesting="HandleRequestStart"
OnClientItemsRequestFailed="HandleRequestFailed">
<itemtemplate>
</itemtemplate>
</telerik:RadComboBox>
it is working in all the browser except IE9
<telerik:RadComboBox ID="ddlHIPOs" NoWrap="true" Visible="false" runat="server" DropDownWidth="320px"
MarkFirstMatch="false" EnableLoadOnDemand="true" CssClass="HIPOCandidateDropDown"
DropDownCssClass="HIPOCandidateDropDown" AppendDataBoundItems="false" ItemsPerRequest="8"
EnableViewState="true" Width="200px" expandeffect="Slide" AllowCustomText="true"
OnItemsRequested="ddlHipos_ItemsRequested" OnClientDropDownOpening="SaveText"
OnClientDropDownClosing="SetText" ItemRequestTimeout="500" OnClientItemsRequesting="HandleRequestStart"
OnClientItemsRequestFailed="HandleRequestFailed">
<itemtemplate>
</itemtemplate>
</telerik:RadComboBox>
4 Answers, 1 is accepted
0

Shinu
Top achievements
Rank 2
answered on 26 Dec 2011, 02:51 PM
Hello Raghav,
I was unable to reproduce the issue at my end. Can you try reproducing the same in the following demo. Also make sure that you have tried with the version which supports the latest browser.
Updating RadControls for ASP.NET AJAX to another version or license.
Thanks,
Shinu.
I was unable to reproduce the issue at my end. Can you try reproducing the same in the following demo. Also make sure that you have tried with the version which supports the latest browser.
Updating RadControls for ASP.NET AJAX to another version or license.
Thanks,
Shinu.
0
Hello Raghav,
Could you provide us with a live URL to your web page? Or, send us a support ticket, where a sample page illustrating the issues, can be attached?
Regards,
Ivana
the Telerik team
Could you provide us with a live URL to your web page? Or, send us a support ticket, where a sample page illustrating the issues, can be attached?
Regards,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0

Raghav
Top achievements
Rank 1
answered on 04 Jan 2012, 11:03 AM
Hi Team
I am using the 2010.3.1317.35 version of telerik rad control for Asp.net ajax.
The following is the code for default.aspx and detault.aspx.cs file.
When i type in for search on the basis of input the itemrequest event is not firing in IE 9 browser.
Aspx Page code
default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ComboBox._Default" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<div>
<telerik:RadComboBox ID="RadComboBox2" runat="server" Width="250px" Height="150px"
EmptyMessage="Select a Company" EnableLoadOnDemand="True" ShowMoreResultsBox="true"
EnableVirtualScrolling="true" OnItemsRequested="RadComboBox2_ItemsRequested">
</telerik:RadComboBox>
</div>
</form>
</body>
</html>
CodeBehind file code
detault.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Telerik.Web.UI;
using System.Data.SqlClient;
using System.Configuration;
namespace ComboBox
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void RadComboBox2_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
{
DataTable data = GetData(e.Text);
DataRow[] dr = data.Select("[EmailId] like '" + e.Text + "%'");
int itemOffset = e.NumberOfItems;
int endOffset = Math.Min(itemOffset + 10, dr.Length);
e.EndOfItems = endOffset == data.Rows.Count;
for (int i = itemOffset; i < endOffset; i++)
{
RadComboBox2.Items.Add(new RadComboBoxItem(dr[i]["EmailId"].ToString(), dr[i]["UserId"].ToString()));
}
e.Message = GetStatusMessage(endOffset, data.Rows.Count);
}
private static DataTable GetData(string text)
{
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "Deleteme";
cmd.CommandType = CommandType.StoredProcedure;
cmd.Connection = new SqlConnection(ConfigurationManager.AppSettings["SQL_CONNECTION_STRING"].ToString());
SqlDataAdapter adapter = new SqlDataAdapter(cmd);
adapter.SelectCommand.Parameters.AddWithValue("@HIPOClassId", 713);
adapter.SelectCommand.Parameters.AddWithValue("@isFinalize", 0);
DataTable data = new DataTable();
adapter.Fill(data);
return data;
}
private static string GetStatusMessage(int offset, int total)
{
if (total <= 0)
return "No matches";
return String.Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", offset, total);
}
}
}
I am using the 2010.3.1317.35 version of telerik rad control for Asp.net ajax.
The following is the code for default.aspx and detault.aspx.cs file.
When i type in for search on the basis of input the itemrequest event is not firing in IE 9 browser.
Aspx Page code
default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ComboBox._Default" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<div>
<telerik:RadComboBox ID="RadComboBox2" runat="server" Width="250px" Height="150px"
EmptyMessage="Select a Company" EnableLoadOnDemand="True" ShowMoreResultsBox="true"
EnableVirtualScrolling="true" OnItemsRequested="RadComboBox2_ItemsRequested">
</telerik:RadComboBox>
</div>
</form>
</body>
</html>
CodeBehind file code
detault.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Telerik.Web.UI;
using System.Data.SqlClient;
using System.Configuration;
namespace ComboBox
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void RadComboBox2_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
{
DataTable data = GetData(e.Text);
DataRow[] dr = data.Select("[EmailId] like '" + e.Text + "%'");
int itemOffset = e.NumberOfItems;
int endOffset = Math.Min(itemOffset + 10, dr.Length);
e.EndOfItems = endOffset == data.Rows.Count;
for (int i = itemOffset; i < endOffset; i++)
{
RadComboBox2.Items.Add(new RadComboBoxItem(dr[i]["EmailId"].ToString(), dr[i]["UserId"].ToString()));
}
e.Message = GetStatusMessage(endOffset, data.Rows.Count);
}
private static DataTable GetData(string text)
{
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "Deleteme";
cmd.CommandType = CommandType.StoredProcedure;
cmd.Connection = new SqlConnection(ConfigurationManager.AppSettings["SQL_CONNECTION_STRING"].ToString());
SqlDataAdapter adapter = new SqlDataAdapter(cmd);
adapter.SelectCommand.Parameters.AddWithValue("@HIPOClassId", 713);
adapter.SelectCommand.Parameters.AddWithValue("@isFinalize", 0);
DataTable data = new DataTable();
adapter.Fill(data);
return data;
}
private static string GetStatusMessage(int offset, int total)
{
if (total <= 0)
return "No matches";
return String.Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", offset, total);
}
}
}
0
Hello,
I have tested the scenario in question with the version specified and everything works as expected -- the OnItemsRequested event is fired as it should.
Attached is the website I have tested. You could download it and test it locally. Does it work at your side?
If you are still having troubles, could you record a video so we would be able to see what exactly happens when the OnItemsRequested event is called?
Regards,
Ivana
the Telerik team
I have tested the scenario in question with the version specified and everything works as expected -- the OnItemsRequested event is fired as it should.
Attached is the website I have tested. You could download it and test it locally. Does it work at your side?
If you are still having troubles, could you record a video so we would be able to see what exactly happens when the OnItemsRequested event is called?
Regards,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now