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

Forums / Developing with Sitefinity / Adding a Page Selector to a Control Designer

Adding a Page Selector to a Control Designer

2 posts, 0 answered
  1. Eric Marthinsen
    Eric Marthinsen avatar
    12 posts
    Registered:
    20 Jun 2005
    23 Nov 2010
    Link to this post
    Hello-

    I created a control desinger for a custom control. I got the ButonSelector working so I can select an image. How can I add a page selector to it? Here is my code:

    <%@ Register TagPrefix="sfLib" Namespace="Telerik.Libraries.WebControls" Assembly="Telerik.Libraries" %>
         
    <div class="customPropertyPanel">
        <h3>General</h3>
        <div class="propertyGroup group">
            <ol>
                <li class="group">
                    <asp:Label ID="lblTitle" AssociatedControlID="txtTitle" CssClass="item_label" runat="server">Title</asp:Label>
                    <asp:TextBox ID="txtTitle" runat="server" />
                </li>
                <li class="group">
                    <asp:Label ID="lblButtonLabel" AssociatedControlID="txtButtonLabel" CssClass="item_label" runat="server">Button Label</asp:Label>
                    <asp:TextBox ID="txtButtonLabel" runat="server" />
                </li>
                <li class="group">
                    <asp:Label ID="lblButtonUrl" AssociatedControlID="txtButtonUrl" CssClass="item_label" runat="server">Button Url</asp:Label>
                    <asp:TextBox ID="txtButtonUrl" runat="server" />
                </li>
                <li class="group">
                    <asp:Label ID="lblImageUrl" AssociatedControlID="txtImageUrl" CssClass="item_label" runat="server">Image Url</asp:Label>
                    <asp:TextBox ID="txtImageUrl" runat="server" />
                    <sfLib:ButtonSelector ID="imainImageSelector" runat="server" AssociatedControls="txtImageUrl" Style="margin-left: 10px;" />
                </li>
            </ol>
        </div>
    </div>


    Regards,
    Eric
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    23 Nov 2010
    Link to this post
    Hello Eric,

    If you want to use page selector you can set the WindowNavigateUrl value to ~/Sitefinity/UserControls/Dialogs/PagesSelector.aspx

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