I have a combobox with MarkFirstMatch="true" AllowCustomText="true"
filled with numbers 1, 3,5,7,...29
When i start enter and type 21 - I get item 21 selected, this is expected
But when i want to type 13 - after I enter 1 cursor jumps to the start position of input box and after I enter 3 i get 31 instead.
How to fix this?
Thank you
Alex
9 Answers, 1 is accepted
In which browser does this happen? Which version of Telerik.Web.UI are you using?
Greetings,
Simon
the Telerik team
i tried on 2010.3.1109.20, on older versions also
Browser IE 8.0.6001.18975
I can send you a sample aspx file, but can't find how to submit support ticket with attachment
You cannot attach the file because only images are allowed in the forums. Please paste here the code, that will suffice.
All the best,
Simon
the Telerik team
Hi, here it is:
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Page Language="vb" AutoEventWireup="false" Inherits="TestCombo" CodeFile="TestCombo.aspx.vb" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD id="HEAD1" runat="server">
<title>Combo</title>
<script type="text/javascript">
function LoadOpis(sender, eventArgs) {
var item = eventArgs.get_item();
$find("cboOpis").set_text("");
if (item.get_value().length > 0) {
$find("cboOpis").requestItems(item.get_value(), false);
}
}
function ItemsLoaded(combo, eventArqs) {
combo.set_text('');
combo.clearSelection();
combo.showDropDown();
}
</script>
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<telerik:RadComboBox id="cboFond" runat="server" width="80"
EnableLoadOnDemand="false"
OnClientSelectedIndexChanging="LoadOpis"
MarkFirstMatch="true" AllowCustomText="true"
MaxHeight="300"
Label="Combo1"
>
</telerik:RadComboBox>
<br />
<telerik:RadComboBox id="cboOpis" runat="server" width="80"
OnClientItemsRequested="ItemsLoaded"
MarkFirstMatch="true" AllowCustomText="true"
Height="100"
maxHeight="300"
OnItemsRequested="cboSelect_ItemsRequested"
Label="Combo2"
>
</telerik:RadComboBox>
</form>
</body>
</HTML>
VB:
Imports Telerik.Web.UI
Partial Class TestCombo
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim item As RadComboBoxItem
item = New Telerik.Web.UI.RadComboBoxItem("F1", "F1")
cboFond.Items.Add(item)
item = New Telerik.Web.UI.RadComboBoxItem("F2", "F2")
cboFond.Items.Add(item)
cboFond.Items.Insert(0, New RadComboBoxItem(""))
End Sub
Protected Sub cboSelect_ItemsRequested(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs)
Dim strText As String = e.Text
Dim cbo As Telerik.Web.UI.RadComboBox
Dim item As Telerik.Web.UI.RadComboBoxItem, i As Integer
cbo = CType(o, Telerik.Web.UI.RadComboBox)
cbo.Items.Clear()
For i = 1 To 30 Step 2
item = New Telerik.Web.UI.RadComboBoxItem(i & "")
item.Value = i & ""
cbo.Items.Add(item)
Next i
End Sub
End Class
Thank you for the code.
This is a bug in RadComboBox, which manifests only in IE and a workaround is unavailable. I logged it and updated your Telerik points for the report.
Is this a show-stopper for your application?
All the best,
Simon
the Telerik team
thank you for reply! It is not a show-stopper, but quite annoying. Can I somehow get a notice when this bug will be fixed?
Alex
Yes, we will notify you once we fix the bug.
Kind regards,
Simon
the Telerik team
No, the bug is not yet fixed. You could track its status here.
Regards,
Simon
the Telerik team