Dynamic Data Scaffolding with static values
Web Development
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I have a database field value, to which i am trying to assign some static values at the metadata level. I want to see this as a dropdown list, with predfined static values. I heard you can achieve this dropdown by defining a foreign key relationship. is there a way to do this without the table? ==
[DisplayNameAttribute("App Form")]
[UIHint("AppType")]
[Required]
public OptionType AppType { get; set; }</pre>public enum OptionType
{
CheckBox=1,
radiobutton=2,
freeform=3,
dropdown=4
}