2
Vote

enum property displays as textbox in sharepoint

description

  1. I created ascx
  2. I added enum property
  3. In Visual Studio, ascx properties pane displays a dropdown
  4. I added to sharepoint via smart part
  5. In Smart part property window, it is just a textbox (not dropdown)
     
    what am I doing wrong? Thanks.
     
    <code>
    private myEnum _myEnum;
     
    [Browsable(true)]
    [Description("Select a value from the dropdown list.")]
    public myEnum MyEnumProperty
    {
        get
        {
            return _myEnum;
        }
        set
        {
            _myEnum = value;
        }
    }
     
    </code>

comments

jdzakarian wrote Oct 28, 2011 at 5:02 PM

sorry, meant this to be a discussion. Pls ignore.

jdzakarian wrote Oct 28, 2011 at 5:03 PM

sorry, meant this to be in discussions. Pls ignore.

wrote Nov 14, 2012 at 9:03 AM

wrote Feb 14, 2013 at 7:33 PM