More in this section

Forums / Developing with Sitefinity / Custom property helpbox descriptions?

Custom property helpbox descriptions?

3 posts, 0 answered
  1. Grant
    Grant avatar
    2 posts
    Registered:
    08 Sep 2008
    29 Nov 2008
    Link to this post
    Hey all,
    When you have a user control on a page in sitefinity, and you click edit, it exposes the public properties on that user control.  The built-in ones all have a ? link next to them which, if clicked, pops up a little HelpBox explaining the use of the property in question. 
    Properties on user controls I've written don't have that functionality, and I'd like to enable it, either off the XML summary for the property automatically, or even through another string literal I'd be willing to set somewhere else...  How can this be done?  I couldn't see anything in the documentation, nor was it evident trying to poke through the telerik assemblies in reflector to figure out if there's an attribute or something.
    Thanks!
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    01 Dec 2008
    Link to this post
    Hi Grant,

    You can try using the Description attribute that specifies a description for a property or event .

     [Description("type your description here")] 
        public string Name 
        { 
            get 
            { 
                return name; 
            } 
            set 
            { 
                name = value; 
            } 
        } 

    I hope this helps.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Grant
    Grant avatar
    2 posts
    Registered:
    08 Sep 2008
    01 Dec 2008
    Link to this post
    That's exactly what I was looking for.  Thanks!
Register for webinar
3 posts, 0 answered