Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Neil Gaietto 13 posts 72 karma points c-trib
    Apr 01, 2014 @ 15:19
    Neil Gaietto
    0

    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?

     

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Apr 01, 2014 @ 18:04
    Jeroen Breuer
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft