Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
EnableRenderingAnchors for WebDataTree
posted

I can't seem to find this property for the tree.  Is there another way to configure the tree to not render the nodes as HTML anchors?

Parents
  • 150
    posted

    Hi antiluddite

     

    Did you try to use templates? Setting the ItemTemplate for the WebDataTree, similar to the following   fragment,  might help you.

    ...

    <ItemTemplate>

                    <img src="images/folder.gif" alt=""/>

                    <span><%# DataBinder.Eval(Container.DataItem, "Name") %></span>

    </ItemTemplate>

    ...

     

    Is there some particular case where rendering Anchor element is not preferable ?

    Hope that helps 

    Christo Djambov

     

Reply Children