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

Forums / 3.x Pre-release forums (retired) / Custom property for User Controls

Custom property for User Controls

4 posts, 0 answered
  1. fregas baratis
    fregas baratis avatar
    185 posts
    Registered:
    14 Nov 2002
    02 Apr 2007
    Link to this post
    I'm working on a custom module with a control the user can add to a page using the "Add Controls" section.  I need one of the properties that the user can set to be a drop down list that is database populated.  Is there a way to do this?  is there a way to create other custom properties for the sitefinity "designer" or "properties window"

    Note: I'm not using Nolics.

    Thanks,
    craig
  2. Bob
    Bob avatar
    330 posts
    Registered:
    24 Sep 2012
    03 Apr 2007
    Link to this post
    Craig,

    Currently the only way to accomplish this is to create custom type editor. We have plans to provide an easier way to make custom property widows but this will be for version 3.1.

    I attached a zip file containing an implementation of a control form a module that is not included in Sitefinity yet. Please see the ListsIds property of ListsDisplay control and ListSelector control which inherits from WebUITypeEditor. This property also defines TypeConverter for serialization / deserialization for offline use like Textbox or persistence.

    I hope this will help.

    Best wishes,
    Bob
    the telerik team

    Instantly find answers to your questions at the new telerik Support Center
  3. John
    John avatar
    21 posts
    Registered:
    25 Nov 2008
    26 Feb 2009
    Link to this post
    Hi,

    I have Sitefinity version 3.6 and I'm wondering if this is now possible?  If so, how?

    Thanks,

    John
  4. Pepi
    Pepi avatar
    981 posts
    Registered:
    16 Sep 2016
    27 Feb 2009
    Link to this post
    Hello John,

    Please, take a look at the following online resources:
    Working with complex properties in Custom public controls (WebTypeEditor)
    Implementing TypeEditors for Complex Properties
    They provide information on how to create a property selector and a dialog for it.

    Also, note that if your property is of type Enum, Sitefinity automatically represents it as a dropdown in the property window.

    Do let us know if you need any further assistance.

    Best wishes,
    Pepi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
4 posts, 0 answered