More in this section

Forums / General Discussions / Just root items

Just root items

2 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    03 Dec 2008
    23 Dec 2010
    Link to this post
    How do I go about getting JUST the root nodes in the sitemap with the Facade?

    I have the menu bound to a service so I can get the children okay, but a bit unsure about just Level 0.  Tried searching the forums and docs, but couldn't find what I needed.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    27 Dec 2010
    Link to this post
    Hello Steve,

    You can use this code

    var pages = App.WorkWith().Pages().Where(p => p.Parent.Id == SiteInitializer.FrontendRootNodeId);

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