Hi,
I've got a problem with my Comboboxes.
Here is the code I use :
Here is the code behind :
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
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(); |
} |
} |
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