Is there an simple way to take a Dictionary/Array of strings and turn it into a DropDownPropertyEditor using c#?
I have already create them using javascript, but it seems like for a simple dropdown it would be easier just to do it in c# since the templates already exist.
I have searched through the umbraco source code, since the documentation is not complete, but it there doesn't seem to be a simple way to create a dropdown without creating internal code.
Custom DropDownPropertyEditor
Is there an simple way to take a Dictionary/Array of strings and turn it into a DropDownPropertyEditor using c#?
I have already create them using javascript, but it seems like for a simple dropdown it would be easier just to do it in c# since the templates already exist.
I have searched through the umbraco source code, since the documentation is not complete, but it there doesn't seem to be a simple way to create a dropdown without creating internal code.
Any ideas?
Hello,
I created a package which creates a DropDownPropertyEditor based on an enum: http://our.umbraco.org/projects/backoffice-extensions/enum-lists
The source code might be able to help you: https://github.com/jbreuer/EnumLists
Jeroen
is working on a reply...