Hi,
I have a RadComboBox defined as follows:
Is there some property that I'm not setting that would cause this, or is it a bug in the control?
I'm using version 2011.1.413.40.
Thanks,
David
I have a RadComboBox defined as follows:
<
telerik:RadComboBox
ID
=
"ddlValue"
runat
=
"server"
AllowCustomText
=
"True"
Width
=
"320px"
MarkFirstMatch
=
"True"
AutoCompleteSeparator
=
";"
AutoPostBack
=
"true"
OnSelectedIndexChanged
=
"ddlValue_SelectedIndexChanged"
>
</
telerik:RadComboBox
>
And this code-behind
protected
void
Page_Load(
object
sender, EventArgs e)
{
if
(!
this
.IsPostBack)
{
var datasource =
new
RadComboBoxItemCollection(ddlValue)
{
new
RadComboBoxItem(
""
,
""
),
new
RadComboBoxItem(
"David Larkin"
, Guid.NewGuid().ToString()),
new
RadComboBoxItem(
"Ahmed Warreth"
, Guid.NewGuid().ToString()),
new
RadComboBoxItem(
"Ryan Estes"
, Guid.NewGuid().ToString()),
new
RadComboBoxItem(
"Antonio Siqueira"
, Guid.NewGuid().ToString())
};
ddlValue.DataSource = datasource;
ddlValue.DataTextField =
"Text"
;
ddlValue.DataValueField =
"Value"
;
ddlValue.DataBind();
}
}
protected
void
ddlValue_SelectedIndexChanged(
object
sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
ltrSelection.Text = (sender
as
RadComboBox).Text;
}
I'm experiencing the following behaviour:
- Choose David Larkin from the combo box
- David Larkin appears in the label as expected
- Place the cursor in the combo box at the end of the text, type ";Ah" and press Enter
- David Larkin;Ahmed Warreth appears in the label as expected
- Choose the first item in the combo box
- I would expect the text of the combo box to become an empty string, but it is actually "David Larkin;"
Is there some property that I'm not setting that would cause this, or is it a bug in the control?
I'm using version 2011.1.413.40.
Thanks,
David