Try Now
More in this section

Forums / Developing with Sitefinity / Page Url picker

Page Url picker

3 posts, 1 answered
  1. Gema
    Gema avatar
    46 posts
    02 Oct 2009
    12 Apr 2011
    Link to this post
    I´m developing a custom module, and one of de properties I have to save,  is a page url.
    I know, than in design time I can set


    "Telerik.Cms.Web.UI.UrlEditorWrapper, Telerik.Cms")]


     to a property, but I need it not in design time.
    I need something similar to the button "Select" in property "Channel page" when you create a new feed.

    Could you explain me, what I have to do to set this functionality in my "Select" button?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    19 Oct 2016
    12 Apr 2011
    Link to this post
    Hello mgrp,

    You have to use PropertyEditorDialog

    Ivan Dimitrov
    the Telerik team

  3. Gema
    Gema avatar
    46 posts
    02 Oct 2009
    13 Apr 2011
    Link to this post
    I´ve used the code from the post

    private string image;
        private PropertyEditorDialog Dialog;
        protected void Page_Load(object sender, EventArgs e)
            this.Dialog = new PropertyEditorDialog();
            this.Dialog.TypeContainer = this;
            this.Dialog.PropertyChanged += new PropertyValueChangedEventHandler(editorDialog_PropertyChanged);
            this.Dialog.Width = Unit.Pixel(300);
            this.Dialog.Height = Unit.Pixel(300);
            this.urlPicker.CommandName = "Telerik.Cms.Web.UI.UrlEditorWrapper, Telerik.Cms";
            this.urlPicker.CommandArgument = "Choose a page";
            this.urlPicker.Command += new CommandEventHandler(urlPicker_Command);
        void urlPicker_Command(object sender, CommandEventArgs e) {
            string name = (string)e.CommandArgument;
            this.Dialog.Show(name, e.CommandName);
        void editorDialog_PropertyChanged(object source, PropertyValueChangedEventArgs e)
            textbox.Text = e.PropertyValue.ToString();

    It´s perfect for me.
    Thanks a lot.
Register for webinar
3 posts, 1 answered