1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Page selector in designer

Page selector in designer

4 posts, 0 answered
  1. Daniel
    Daniel avatar
    3 posts
    Registered:
    25 Oct 2010
    02 Dec 2010
    Link to this post
    Can I in any way reuse the page selector in designer mode of custom controls?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    02 Dec 2010
    Link to this post
    Hi Daniel,

    You can use the selector as a property

    [UrlProperty, WebEditor("Telerik.Cms.Web.UI.DhlUrlEditor, Telerik.Cms"), Bindable(true), WebSysDescription("HyperLink_NavigateUrl"), Category("Navigation"), DefaultValue("")]
       public string NavigateUrl
       {
           get
           {
               return this.navigateUrl;
           }
           set
           {
               this.navigateUrl = value;
           }
       }
     
       /// <summary>Gets or sets ID to a SitefinityPage</summary>
       /// <value>Sitefinity Page ID.</value>
       [TypeConverter("Telerik.Cms.Web.UI.GuidTypeConverter, Telerik.Cms"), WebEditor("Telerik.Cms.Web.UI.DhlIdEditor, Telerik.Cms"), Category("Navigation"), DefaultValue(typeof(Guid), "00000000-0000-0000-0000-000000000000")]
       public Guid PageId
       {
           get
           {
               return this.pageId;
           }
           set
           {
               this.pageId = value;
           }
       }


    All the best,
    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
  3. Daniel
    Daniel avatar
    3 posts
    Registered:
    25 Oct 2010
    02 Dec 2010
    Link to this post
    I have a protection level issue with the WebSysDescription("HyperLink_NavigateUrl")
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    02 Dec 2010
    Link to this post
    Hi Daniel,

    Sorry the code is for Sitefinity 3.x. You cannot use it in Sitefinity 4.0. We have not implemented WebEditors that you can use directly as a part of a public property in "Advanced" section of a control. You have to create a control designer and call the webeditor from it. You can take a look at How to create a widget tutorial and this sample

    Regards,
    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
4 posts, 0 answered