When processing the SelectionChanged event for a RadComboBox, the Text property of the control is not yet set with the new text value. For example, we add a RadComboBox with the SelectionChanged event set to the following OnSelectionChanged.
private
void
OnSelectionChanged(
object
sender, SelectionChangedEventArgs e)
{
RadComboBox cb = sender
as
RadComboBox;
Trace.TraceInformation(
"cb.Text = {0}"
, cb.Text);
}
When we start typing in the Combo Box, the displayed text is always the Text value before the latest character. So,l when we type 1, cb.Text is null, when we type 2, the combo box displays "12", but cb.Text is 1.
How can we see the current value of the text box when the selection is changed?