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

Problems pressing enter key while focus on the combobox

2 Answers 68 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Arambourg
Top achievements
Rank 1
Arambourg asked on 09 Jun 2010, 10:34 AM
Hi,

I've got a problem with my Comboboxes.
Here is the code I use :

<telerik:RadComboBox ID="RadComboBox1" Runat="server" Skin="Office2007"
</telerik:RadComboBox> 

Here is the code behind :

protected void Page_Load(object sender, EventArgs e) 
   using (CiviliteBLL cBLL = new CiviliteBLL()) 
   { 
      this.RadComboBox1.DataSource = cBLL.GetAll(); 
      this.RadComboBox1.DataTextField = "Designation"
      this.RadComboBox1.DataValueField = "CoCivilite"
      this.RadComboBox1.DataBind(); 
   } 
The problem occurs when I have the focus on my combobox. I select one item in my combobox. The element is selected, but when I press the Enter key, to validate my form and send my data, the selected changes and then, the last item of the combobox is selected.

Why does it works like this? What can I do to avoid this problem.
I saw that if I add these attributes :  Filter="Contains" MarkFirstMatch="true" ChangeTextOnKeyBoardNavigation="false"
It works well but it's not the behaviour I want for my application because I don't want the client to write anything in the combo.

Thanks in advance


2 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 14 Jun 2010, 03:43 PM
Hi Arambourg,

In order to verify whether such an issue exists with the latest version of RadControls I tested in this live demo. Pressing Enter on the second RadComboBox after selecting an Item worked fine.

Can you please confirm that you are using the latest version of the Telerik.Web.UI assembly, namely 2010.1 519?

Greetings,
Simon
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Arambourg
Top achievements
Rank 1
answered on 14 Jun 2010, 03:47 PM
No, the actual version I'm using is 2009.3.1208.35
I'll see if I can upgrade my RadControls version.
Tags
ComboBox
Asked by
Arambourg
Top achievements
Rank 1
Answers by
Simon
Telerik team
Arambourg
Top achievements
Rank 1
Share this question
or