I\'m populating a
from database as follows.
noSelectionOption
.When noSelectionOption="true"
, the converter will not even try to process the value.
Plus, when you combine that with
you will get a validation error, when user tries to select that option.
One final touch, you can use the itemDisabled
attribute to make it clear to the user that he can't use this option.
Now if you do want to be able to set a null value, you can 'cheat' the converter to return a null value, by using
More reading here, here, or here