Cursor jumps to start after first char

10 posts, 0 answers
  1. Alex Dybenko
    Alex Dybenko avatar
    161 posts
    Member since:
    Jan 2005

    Posted 11 Dec 2010 Link to this post

    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

  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 12 Dec 2010 Link to this post

    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.
  3. Alex Dybenko
    Alex Dybenko avatar
    161 posts
    Member since:
    Jan 2005

    Posted 13 Dec 2010 Link to this post

    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
  4. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 13 Dec 2010 Link to this post

    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.
  5. Alex Dybenko
    Alex Dybenko avatar
    161 posts
    Member since:
    Jan 2005

    Posted 13 Dec 2010 Link to this post

    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

  6. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 16 Dec 2010 Link to this post

    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.
  7. Alex Dybenko
    Alex Dybenko avatar
    161 posts
    Member since:
    Jan 2005

    Posted 16 Dec 2010 Link to this post

    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
  8. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 16 Dec 2010 Link to this post

    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.
  9. Salvatore
    Salvatore avatar
    3 posts
    Member since:
    May 2011

    Posted 25 Oct 2011 Link to this post

    Was there a release that resolved this issue?
  10. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 27 Oct 2011 Link to this post

    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
Back to Top