Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
For dropdownlists I often use a editordescriptor and pupulate that with my stuff. Then use the editordescriptor as [UIHint]. Something like Linus did in this blogpost: http://world.episerver.com/Blogs/Linus-Ekstrom/Dates/2012/9/EPiServer-7-Configuring-editors-for-your-properties/
Hi,
I must be insane because I couldn’t get EPiServer 7.5 MVC to render a simple DropDownList in edit mode. A case of trying too hard and frustration led to this post. Why do they make it so difficult to do the simplest of things :)
I have googled and searched the forum but EPiServer has a specializedProperty and they don’t let you map a simple DropDownList to it?
Drop-down list
String (<= 255)
EPiServer.SpecializedProperties.PropertyDropDownList
EPiServer
gives the error:
Why has this information not been added to this fine list here: http://world.episerver.com/Documentation/Items/Developers-Guide/EPiServer-CMS/75/Content/Properties/Property-types/ ?
Anyway, in case you are wondering. Since EPiServer.SpecializedProperties.PropertyDropDownList is a really a string, just do this:
[UIHint("DropDownList")]
public virtual string ActiveView { get; set; }