BUG: RenderRootNodeId with Tree Layout

This post has 2 replies

Not Ranked
Posts: 11
WorWicWebmaster Posted: Wed Jul 12, 2006 @ 9:47 AM
Has anyone else noticed what seems to be a bug with the SiteMap control when used with SiteMapLayout="Tree", TreeShowLines="true", RenderRootNodeId="MyId", and RenderRootNodeInclude="false"?

I'll use the "basic_treeLayout" live example to provide the necessary reproduction steps:
1) Open the siteMap.xml file and add an ID to the first node (i.e. ID="Products").
2) Open the WebForm1.aspx file and RenderRootNodeId="Products" to the control's definition.
3) Remove the entire "<table> ... < /table>" group to get a better feel for it.
4) Run the example and notice the mis-matched tree line images.
5) If you set the control's RenderRootNodeInclude="true", the images display okay.

The more sub-nodes you add to the XML hierarchy, the worse the images get. It's as if the rendering is still accounting for any parent nodes, despite the property settings to not include them, etc.

I expect the SiteMap to display just the first node's children as if they were the only nodes in the XML file.

Thanks!
Top 10 Contributor
Posts: 6,424
hwan Posted: Fri Jul 14, 2006 @ 9:12 AM
I have reproduced this issue and have verified that it is indeed a bug. I have informed the developers, but unfortunately a fix will not be ready for our next upcoming build.

I apologize for the inconvenience.
Not Ranked
Posts: 11
WorWicWebmaster Posted: Fri Jul 14, 2006 @ 10:20 AM
Thank you for confirming. I'll include the root node in rendering for now and await the fix in a couple of builds.
Page 1 of 1 (3 items)