Try Now
More in this section

Forums / General Discussions / Not answered Page in sitemap, not in menu control.

Not answered Page in sitemap, not in menu control.

2 posts, 0 answered
  1. vinamra
    vinamra avatar
    45 posts
    23 Oct 2012
    11 Jun 2010
    Link to this post

    i hav created a a page group in top level and created some pages but it shows in the the sitemenu in the admin but not in the client side. not in any of the navigation control

    my caching on the pages is disabled and other settings are also default.

    i hav checked the code and found that some nodes are missing.

    //Get the SiteMapDataSourceView from the siteMapData SiteMapDataSource
    SiteMapDataSourceView siteMapView = (SiteMapDataSourceView)SiteMapDataSource1.GetView(string.Empty);
    //Get the SiteMapNodeCollection from the SiteMapDataSourceView
    SiteMapNodeCollection nodes = (SiteMapNodeCollection)siteMapView.Select(DataSourceSelectArguments.Empty);

    i am using this code to get the nodes of the site.

    plz help as no page is displaying after some pages.
    like the count of the nodes is 13. if i add new pagegroup even then the count is 13 but if i add a page on toplevel then nodes count increases. if i convert that pagegroup to page then it shows in the menu.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    25 Oct 2016
    11 Jun 2010
    Link to this post
    Hi vinamra,

    You can use GetPages(); method of the CmsManager to get all pages and then bind the navigation control to the list.

    Best wishes,
    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