Hello Telerik,
We upgraded from the 2011 Q1 to the 2011 Q2 release yesterday and noticed that the following functionality in the RadComboBox has changed.
We create our own server control (SingleSelectRadComboBox) that derives from RadComboBox:
In the constructor, we have the following properties set:
When we bind data to the RadComboBox using the Q1 release, the first item that was bound is selected in the dropdown and the SelectedIndex property is 0. When we switched to Q2, the data is bound properly, but the SelectedIndex property is -1.
If we comment out the following three lines of code in our default constructor the control works the same between releases.
I assume that this change is related to the following comment in the release notes:
Added: Improved EmptyMessage to show regardless of the value of the AllowCustomText and EnableLoadOnDemand properties
Was the change I describe an intended or unintended side effect of the Q2 release?
Thanks!!
Thad
We upgraded from the 2011 Q1 to the 2011 Q2 release yesterday and noticed that the following functionality in the RadComboBox has changed.
We create our own server control (SingleSelectRadComboBox) that derives from RadComboBox:
public
sealed
class
SingleSelectRadComboBox : RadComboBox, ISingleSelectRadComboBox
In the constructor, we have the following properties set:
/// <summary>
/// Default constructor that sets up common control properties
/// </summary>
public
SingleSelectRadComboBox()
{
AllowCustomText =
false
;
ChangeTextOnKeyBoardNavigation =
true
;
EnableTextSelection =
true
;
MarkFirstMatch =
true
;
EmptyMessage =
"Select..."
;
CloseDropDownOnBlur =
true
;
CollapseAnimation.Type = AnimationType.None;
ExpandAnimation.Type = AnimationType.None;
MaxHeight = Unit.Pixel(200);
if
(Width.Value == 0) { Width = Unit.Pixel(160); }
OnClientFocus =
"singleSelect_RadComboBox_Focus"
;
}
When we bind data to the RadComboBox using the Q1 release, the first item that was bound is selected in the dropdown and the SelectedIndex property is 0. When we switched to Q2, the data is bound properly, but the SelectedIndex property is -1.
If we comment out the following three lines of code in our default constructor the control works the same between releases.
EnableTextSelection =
true
;
MarkFirstMatch =
true
;
EmptyMessage =
"Select..."
;
I assume that this change is related to the following comment in the release notes:
Added: Improved EmptyMessage to show regardless of the value of the AllowCustomText and EnableLoadOnDemand properties
Was the change I describe an intended or unintended side effect of the Q2 release?
Thanks!!
Thad