+1-888-365-2779
Try Now
More in this section

usercontrol public properties

4 posts, 0 answered
  1. Annie
    Annie avatar
    46 posts
    Registered:
    11 Aug 2012
    23 Feb 2012
    Link to this post
    Hi,

    We have a lot of usercontrols with public properties that we moved from sitefinity3.7 to 4.4 but I am not able to access these properties in edit mode, how do you create public properties in sitefinity 4.4 usercontrols that can be accessed in edit mode?

    Thanks in advance for your help

    Thanks,
    Annie
  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    23 Feb 2012
    Link to this post
    Annie, when you click "Edit" on your widget, does the control designer open? This is where you should see several widget properties, including any public ones you've defined on the control. Let me know what you see and we can go from there.
  3. Annie
    Annie avatar
    46 posts
    Registered:
    11 Aug 2012
    24 Feb 2012
    Link to this post
    Hi SelArom,

    Thanks for your reply. We have some public properties that are enums. In sitefinity 3.7 enums used to appear as dropdowns but that is no longer supported right?

    Thanks,
    Annie
  4. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    24 Feb 2012
    Link to this post
    Currently the auto-designer renders textboxes for all fields. Do add support for alternate controls for input, a control designer must be implemented.

    There is an example here that demonstrates building a control designer that includes an enum:
    Creating Advanced Sitefinity 4 Widget Control Designers 

    This article might be helpful in getting you started as well: Anatomy of a Sitefinity 4 Widget

    Hope this is helpful!
4 posts, 0 answered