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

Custom property for User Controls

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
4 posts, 0 answered
  1. fregas baratis
    fregas baratis avatar
    185 posts
    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.

  2. Bob
    Bob avatar
    330 posts
    30 Dec 2016
    03 Apr 2007
    Link to this post

    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,
    the telerik team

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

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


  4. Pepi
    Pepi avatar
    981 posts
    31 Jan 2017
    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,
    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