Hi,
I would like to have the view model extended when used with an radio button / check button / dropdown list, as I see no simple way to retrieve the value for an option.
Here is a simple example: There is a dropdown list with background colors. The way, the name AND value of an option is retrieved, is by a workaround.
var backgroundColorObj = Model.GetValue("BackgroundColor"); var backgroundColorProperty = backgroundColorObj.GetType().GetProperty("SelectedValue"); var backgroundColorValue = backgroundColorProperty.GetValue(backgroundColorObj, null).ToString();
If there is already another way to do this that I have missed, please let me know.
Best regards,
Roald, Novicell