Community & Support
Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Treeview > radtreenode plus minus issue
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered radtreenode plus minus issue

Feed from this thread
  • nick b-w avatar

    Posted on Dec 20, 2009 (permalink)

    Hello,

    I am using load on demand (serversidecallback) to populate nodes, the issue i am having is that when a new node is loaded it will always show + next to it, even if it has no children.

    Is there a setting that I have to give a node so that it will hide this image if it has no children? 

    Is there a way to programatically show or hide these images?

    thanks very much

    Nick

  • Yana Yana admin's avatar

    Posted on Dec 21, 2009 (permalink)

    Hi Nick,

    Actually this is expected behavior since the subnodes are loaded on demand and you don't know in advance how many subnodes a node will have.

    All the best,
    Yana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

  • nick b-w avatar

    Posted on Dec 22, 2009 (permalink)

    thank you i understand that, but is there a way to programatically show or hide these images? or is it only possible editing the skin/css?

    thanks

  • Yana Yana admin's avatar

    Posted on Dec 23, 2009 (permalink)

    Hi Nick,

    I suggest you set ContentCssClass property to the node that doesn't need images:

    node.ContentCssClass="noSigns";

    and add  "noSigns"  css class to your page:

    <style type="text/css">
        div.noSigns .rtPlus,
        div.noSigns .rtMinus {
            display: none;
        }
     
    </style>

    Best regards,
    Yana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

  • nick b-w avatar

    Posted on Dec 23, 2009 (permalink)

    thank you

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Treeview > radtreenode plus minus issue