Click here to Skip to main content
15,914,392 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello,

I've a serious problem with RadComboBox

When Filtering RadComboBox IE 9 , it works fine actually with markfirstmatch property and i could filter with more than one character
For example if i am filtering Combobox to find item with name "AmrRafat", i could write 'amr' and the combobox will do the rest and finds this item.

but when trying the same scenario in IE 11, it only accepts the first character and each time i am pressing a key it consider it as the first character for filtering
For example if i am filtering Combobox to find item with name "AmrRafat", and i tried to write 'amr' Then Combobox will assume only one character and filter with it

.aspx File

ASP.NET
<telerik:RadComboBox ID="cmbPayers" runat="server" Width="100%"  AutoPostBack="true"  MarkFirstMatch="true" TabIndex="11" OnSelectedIndexChanged="cmbPayers_SelectedIndexChanged"></telerik:RadComboBox>


Any Ideas?
IT's URGENT !!!!
Posted
Updated 25-Feb-14 0:21am
v2
Comments
Kornfeld Eliyahu Peter 25-Feb-14 3:03am    
Telerik has an excellent - forum based - support. I suggest to search there...
_ProgProg_ 25-Feb-14 3:06am    
Actually, I've posted this yesterday to telerik Forum but i 've no respond untill now!
here is the URL
http://www.telerik.com/forums/markfirstmatch-telerik-radcombobox-filter-one-character-only-in-ie-11
Kornfeld Eliyahu Peter 25-Feb-14 3:11am    
You may start to read other post on that forum - probably someone already got hit...
http://www.telerik.com/search?start=0&q=markfirstmatch&collection=telerik30&ResourceType=Forum&hgurl=aspnet-ajax&fid=8d8ae6af-3ee6-4563-88c1-fc6be35a0c95

I remember that was some problem with Unicode (non English) characters in one of the versions...
Dave Kreskowiak 25-Feb-14 7:33am    
Telerik's response time, if you paid for the product and submitted a support ticket, is 24 hours. Be patient.

If you just posted in the forums, it could be a bit longer.

1 solution

remove mark as first and add this code on Item Requested

protected void cmbemp_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
{
string s = System.Configuration.ConfigurationManager.AppSettings["DataCon"].ToString();

try
{
string sqlSelectCommand = "SELECT emp_id,emp_name FROM tblemployes Where m.emp_name LIKE @text + '%' ORDER BY m.emp_name ";

SqlDataAdapter adapter = new SqlDataAdapter(sqlSelectCommand, s);
adapter.SelectCommand.Parameters.AddWithValue("@text", e.Text);
DataTable dataTable = new DataTable();
adapter.Fill(dataTable);

foreach (DataRow dataRow in dataTable.Rows)
{
RadComboBoxItem item = new RadComboBoxItem();
item.Text = (string)dataRow["emp_name"];
item.Value = dataRow["emp_id"].ToString();

id = Convert.ToString(dataRow["emp_id"]);
//string status = Convert.ToString(dataRow["emp_Status"]);

item.Attributes.Add("emp_id", id);
// item.Attributes.Add("emp_Status", status);
cmbemp.Items.Add(item);
cmbemp.DataBind();
}
}
catch (Exception ex)
{

throw new ApplicationException(ex.Message);
}
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900