More in this section

Forums / Developing with Sitefinity / How do you get a browse button in a control's property?

How do you get a browse button in a control's property?

4 posts, 1 answered
  1. andersleet
    andersleet avatar
    155 posts
    Registered:
    03 Jun 2009
    23 Jul 2009
    Link to this post
    How can I get a browse button like the one in the following screenshot?


    Thanks!
    anders
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    24 Jul 2009
    Link to this post
    Hello andersleet,

    In your control you can add a property using UrlEditorWrapper.

    [WebEditor ( "Telerik.Cms.Web.UI.UrlEditorWrapper, Telerik.Cms" )] 
            public string Url 
            { 
                get 
                { 
                    return this.pageUrl; 
                } 
                set 
                { 
                    this.pageUrl= value; 
                } 
            } 
     
       private string pageUrl; 


    Sincerely yours,
    Ivan Dimitrov
    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.
    Answered
  3. andersleet
    andersleet avatar
    155 posts
    Registered:
    03 Jun 2009
    24 Jul 2009
    Link to this post
    Thanks Ivan, exactly what I was looking for. Is there a page in the (online)documentation that contains what you just showed me? I would like to know if it is possible to create dropdowns and other fancy things if possible :D

    Regards,
    anders
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    24 Jul 2009
    Link to this post
    Hello andersleet,

    You can take a look at the following blog where you can find some useful articles.

    Best wishes,
    Ivan Dimitrov
    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, 1 answered