06 Nov 2012
20 Mar 2013
Link to this post
I have a piece of code where I am rendering the nodes for my left hand side navigation. Pretty standard. Now I have also been asked to, when in preview mode, to show the menu items of the pages that will be published on the same date as per the publish date of the current page in view.
Done a few attempts and haven't yet managed to do it, so coming to the forums for help.
I have the following.
protected void RTV1_NodeDataBound(object sender, Telerik.Web.UI.RadTreeNodeEventArgs e)
//get the current node's URL
e.Node.Selected = true;
//ensure that the parent nodes are selected
//force the node to expand
e.Node.Expanded = true;
//if not the selected node
e.Node.Selected = false;
//collapse the children
//force the node property 'expanded' to false
e.Node.Expanded = false;
So for each node I want to get the page ID and get the publish date, how to achieve that?