Parent ID of a page ?

Posted by Community Admin on 03-Aug-2018 22:42

Parent ID of a page ?

All Replies

Posted by Community Admin on 11-Feb-2011 00:00

How do I get the parent ID of a page if I have the page title.. For example, if I had a page named TestPage. How would I get the parent ID of TestPage ? Code please ..

Thanks in advance,

Jon

Posted by Community Admin on 15-Feb-2011 00:00

Hi Jon,

First you need to get the PageNode object. Then you can call PageNode.Parent that returns the parent PageNode.

sample code

var pg = App.WorkWith().Pages().Where(p => p.Title == "somevalue").Get().SingleOrDefault();
var parent = pg.Parent;


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

This thread is closed