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

First letter disappears when I write a bit too quick

2 Answers 29 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Joseph
Top achievements
Rank 1
Joseph asked on 31 Oct 2011, 08:55 AM

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 Answers, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 03 Nov 2011, 08:18 AM
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
0
Joseph
Top achievements
Rank 1
answered on 03 Nov 2011, 09:21 AM

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();
}
Tags
ComboBox
Asked by
Joseph
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Joseph
Top achievements
Rank 1
Share this question
or