Just root items

Posted by Community Admin on 03-Aug-2018 19:28

Just root items

All Replies

Posted by Community Admin on 23-Dec-2010 00:00

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.

Posted by Community Admin on 27-Dec-2010 00:00

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

This thread is closed