This is a migrated thread and some comments may be shown as answers.

Cursor jumps to start after first char

9 Answers 114 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Alex Dybenko
Top achievements
Rank 2
Alex Dybenko asked on 11 Dec 2010, 04:24 PM
Hi,
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

Sort by
0
Simon
Telerik team
answered on 12 Dec 2010, 05:14 PM
Hi Alex Dybenko,

In which browser does this happen? Which version of Telerik.Web.UI are you using?

Greetings,
Simon
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Alex Dybenko
Top achievements
Rank 2
answered on 13 Dec 2010, 11:27 AM
Hi Simon,
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
0
Simon
Telerik team
answered on 13 Dec 2010, 12:39 PM
Hello Alex Dybenko,

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
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Alex Dybenko
Top achievements
Rank 2
answered on 13 Dec 2010, 12:48 PM

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

0
Simon
Telerik team
answered on 16 Dec 2010, 02:55 PM
Hello Alex Dybenko,

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
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Alex Dybenko
Top achievements
Rank 2
answered on 16 Dec 2010, 03:01 PM
Hi Simon,
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
0
Simon
Telerik team
answered on 16 Dec 2010, 04:56 PM
Hi Alex Dybenko,

Yes, we will notify you once we fix the bug. 

Kind regards,
Simon
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Salvatore
Top achievements
Rank 1
answered on 25 Oct 2011, 05:54 PM
Was there a release that resolved this issue?
0
Simon
Telerik team
answered on 27 Oct 2011, 10:40 AM
Hello Salvatore,

No, the bug is not yet fixed. You could track its status here.

Regards,
Simon
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
Tags
ComboBox
Asked by
Alex Dybenko
Top achievements
Rank 2
Answers by
Simon
Telerik team
Alex Dybenko
Top achievements
Rank 2
Salvatore
Top achievements
Rank 1
Share this question
or