Try Now
More in this section

Forums / Developing with Sitefinity / Changing default property on controls' "Advanced" tab

Changing default property on controls' "Advanced" tab

2 posts, 0 answered
  1. Matthew Hensley
    Matthew Hensley avatar
    3 posts
    26 Oct 2009
    17 Aug 2010
    Link to this post
    I have extended the "GenericContent" control and all is well except for the "Advanced" tab of the control editor. Currently the ID property is the "default" (has a bold label and dotted border) but the default be another property.

    Is there an attribute I'm missing to use on my property? Other controls have different defaults but I cannot determine why.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    19 Oct 2016
    18 Aug 2010
    Link to this post
    Hi Matthew Hensley,

    GenericContent control inherits from WebControl and the property is set not inside GenericContent. You can change the default property by setting [System.ComponentModel.DefaultProperty("PropertyName")] to your custom class.
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered