Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity 3.x: 3.x Pre-release forums (retired) > Custom property for User Controls

Custom property for User Controls

  • fregas baratis Intermediate avatar

    Posted on Apr 2, 2007 (permalink)

    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

    Reply

  • Bob Bob admin's avatar

    Posted on Apr 3, 2007 (permalink)

    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
    Attached files

    Reply

  • John avatar

    Posted on Feb 26, 2009 (permalink)

    Hi,

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

    Thanks,

    John

    Reply

  • Pepi Pepi admin's avatar

    Posted on Feb 27, 2009 (permalink)

    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.

    Reply

  • Register for webinar
Skip Navigation LinksHome / Developer Network / Forums / Sitefinity 3.x: 3.x Pre-release forums (retired) > Custom property for User Controls