I am creating user control , in which I have placed combo, binded with Enumerations. Binding this enum list has no error.
I try to validate selectedvalue of this combo in button click. But this throw's error while page loads as ,
Value " could not be converted.
If I select 1st option (none) from the list , this error message disapears.
I think, selectedvalue property takes empty string in some where, I can't traceout this.
My coding is as below
In viewmodel
#region Living room
public IEnumerable LivingRoomFloorTypeList
{
get
{
return Utility.GetAllValuesAndDescriptions();
}
}
private EnumAptitudeOfLivingRoomFloor _livingRoomFloorType;
public EnumAptitudeOfLivingRoomFloor SelectedLivingRoomType
{
get
{
return _livingRoomFloorType;
}
set
{
if (_livingRoomFloorType == value)
return;
_livingRoomFloorType = value;
RaisePropertyChanged("SelectedLivingRoomType");
}
}
#endregion
I can't trace out the issue. Help me on this.
Thanks in advance
Dipankar BiswasPosted May 26, 2015, 3:20 AM