First letter disappears when I write a bit too quick

3 posts, 0 answers
  1. Joseph
    Joseph avatar
    12 posts
    Member since:
    Apr 2008

    Posted 31 Oct 2011 Link to this post

    Hello
    I use the ajax combo to search the addresses. The problem is that the first letter disappears when I write a little too fast, and it is only the first time I enter, but afterwards comnobox functioning, as it should.
    I also have similar problem with ÅØÆ letters. First time I write these letters, I get a strange character, but when I delete it and write it again I get it right. what the problem could be??

    Here is my ComboBox:

    <telerik:RadComboBox ID="RadComboBoxSearch1" runat="server" AutoPostBack="true" SkinsPath="~/RadControls/ComboBox/Skins"

                            Width="95%" Enabled="false" EnableLoadOnDemand="True" ShowMoreResultsBox="True"

                            LoadingMessage="Søger..." OnItemsRequested="RadComboBoxSearch1_ItemsRequested"

                            OnSelectedIndexChanged="RadComboBoxSearch1_SelectedIndexChanged"    
                            OnClientDropDownOpening="CleanBoxSearch1"

                            OnClientKeyPressing="OnClientKeyPressing_searchBox1"
                            OnClientItemsRequesting="OnClientItemsRequesting_searchBox1"

                            OnClientItemsRequested="OnClientItemsRequested_searchBox1" OnClientLoad="GiveMeFocus">

                            <HeaderTemplate>

                                <div id="previous" class="previousText">

                                    <a id="RadComboBox1_MoreResultsBoxImage2" onclick="setIsPrevious_searchBox1();">

                                        <img src="Images/arrow.png" alt="previous" />

                                        Previous </a>

                                </div>

                            </HeaderTemplate>

    </telerik:RadComboBox>

  2. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 03 Nov 2011 Link to this post

    Hi Joseph,

    I did not manage to reproduce the same behavior locally.
    Could you please share the information about the version of the controls you are using?

    Try to provide us with a live URL of  the page where the RadComboBox is, so we could examine the experienced behavior.

    Greetings,
    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
  3. Joseph
    Joseph avatar
    12 posts
    Member since:
    Apr 2008

    Posted 03 Nov 2011 Link to this post

    Hi Ivana

    I found a workaround for this problem. ComboBox work's fine when dropdownbox is open. So I used OnClientFocus to check if ComboBox is empty or not. If the ComboBox is empty and has the focus, the dropdownbox will open automatically. It works for me.
    Here is the code.


    <telerik:RadComboBox ID="RadComboBoxSearch1" runat="server" AutoPostBack="true" SkinsPath="~/RadControls/ComboBox/Skins"
    Width="95%" Enabled="false" EnableLoadOnDemand="True" ShowMoreResultsBox="True"
    LoadingMessage="Søger..."
    OnItemsRequested="RadComboBoxSearch1_ItemsRequested"
    OnSelectedIndexChanged="RadComboBoxSearch1_SelectedIndexChanged"
    OnClientDropDownOpening="CleanBoxSearch1"
    OnClientKeyPressing="OnClientKeyPressing_searchBox1"
    OnClientItemsRequesting="OnClientItemsRequesting_searchBox1"
    OnClientItemsRequested="OnClientItemsRequested_searchBox1"
    OnClientLoad="GiveMeFocus" OnClientFocus="ClientFocus">
    <HeaderTemplate>
    <div id="previous" class="previousText">
    <a id="RadComboBox1_MoreResultsBoxImage2" onclick="setIsPrevious_searchBox1();">
    <img src="Images/arrow.png" alt="previous" />
    Previous </a>
    </div>
    </HeaderTemplate>
    </telerik:RadComboBox>
     
    //Javascript:
    function ClientFocus(sender) {
    if (sender && sender.get_text() == "") {
    sender.showDropDown();
    }
Back to Top