Try Now
More in this section

Forums / Developing with Sitefinity / select Link Customization.

select Link Customization.

2 posts, 0 answered
  1. humayoo
    humayoo avatar
    89 posts
    25 Oct 2010
    21 Mar 2011
    Link to this post
     i need to build my own.i do not want to use button selector. i am able to pupulate radtreeview and also get ratreview of all pages. but i am not able to add "All Pages" tab in the beginning. here is my  code.

    <telerik:RadMultiPage ID="urlPickerMultiPage" runat="server" SelectedIndex="0">
                    <telerik:RadPageView ID="siteMapView" runat="server">
                       <telerik:RadTreeView ID="RadTreeView1" runat="server" Skin="SitefinitySiteMap" EnableEmbeddedSkins="false" MultipleSelect="true" CheckBoxes="true"></telerik:RadTreeView>

    RadTreeView1.DataSource = cmsManager.GetPages();
    RadTreeView1.DataTextField = "Name";
    RadTreeView1.DataValueField = "ID";
    RadTreeView1.DataFieldID = "ID";
    RadTreeView1.DataFieldParentID = "ParentID";

    please see attachment for better understanding.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    25 Oct 2016
    21 Mar 2011
    Link to this post
    Hi humayoo,

    Here is a sample that shows how to add the root node

                    RadTreeNode root = new RadTreeNode();
                    root.CssClass = "cmsRoot";
                    root.HoveredCssClass = "cmsRootOver";
                    root.SelectedCssClass = "cmsRootSelect";
                    root.Value = CmsSiteMap.Provider.RootNode.Key; //Guid.Empty.ToString();
                    root.Text = "All Pages";
                    root.Expanded = true;
                    root.ToolTip = "";

    All the best,
    Ivan Dimitrov
    the Telerik team
2 posts, 0 answered