I am using a ComboBox with the following settings:
Is there a codeless (MVVM) way to force a valid value to be chosen? As it stands, the user can click into the "TextBox" part of the RadComboBox, hit the backspace key repeatedly to clear out the text, and effectively set the value to null. This is even though the ComboBox does not have a null / blank value available for selection via the mouse / arrow keys.
The ideal situation would be to return the ComboBox to its original value if the user does not select a valid value.
I'm sure there is a method of doing this via code behind, but this seems like something that could already be built into the control.
Thank you,
Kevin
<
Setter
Property
=
"TextSearchMode"
Value
=
"StartsWith"
/>
<
Setter
Property
=
"IsEditable"
Value
=
"True"
/>
<
Setter
Property
=
"IsReadOnly"
Value
=
"True"
/>
Is there a codeless (MVVM) way to force a valid value to be chosen? As it stands, the user can click into the "TextBox" part of the RadComboBox, hit the backspace key repeatedly to clear out the text, and effectively set the value to null. This is even though the ComboBox does not have a null / blank value available for selection via the mouse / arrow keys.
The ideal situation would be to return the ComboBox to its original value if the user does not select a valid value.
I'm sure there is a method of doing this via code behind, but this seems like something that could already be built into the control.
Thank you,
Kevin