Hello
With the legacy Winforms combobox (databound mode), when you enter a text which do not correspond to an item of the datasource the selectedIndex property of the combobox is -1 and the selectedItem is Nothing.
With the radDropDownList, I have the same behavior if I never have a valid item selected. But when an item has been selected and you type a "wrong" text, the selectedIndex and selectedItem always return the last selected index instead of -1 and Nothing.
So I can get in this kind of situation:
The displayed text is dirty (not corresponding to a valid value of my list) but the selected Item is a valid (and unknow) value !
Is there a way to fix this issue? I don't want to force the users to choose a valid value because I like to consider that's invalid text (most of time a blank one (If not I set it blank on validation)) with SelectedIndex = -1 and SelectedItem Is Nothing is for a Null Value.
With the legacy Winforms combobox (databound mode), when you enter a text which do not correspond to an item of the datasource the selectedIndex property of the combobox is -1 and the selectedItem is Nothing.
With the radDropDownList, I have the same behavior if I never have a valid item selected. But when an item has been selected and you type a "wrong" text, the selectedIndex and selectedItem always return the last selected index instead of -1 and Nothing.
So I can get in this kind of situation:
The displayed text is dirty (not corresponding to a valid value of my list) but the selected Item is a valid (and unknow) value !
Is there a way to fix this issue? I don't want to force the users to choose a valid value because I like to consider that's invalid text (most of time a blank one (If not I set it blank on validation)) with SelectedIndex = -1 and SelectedItem Is Nothing is for a Null Value.