Removing plus/minus icon

3 posts, 0 answers
  1. Daniel
    Daniel avatar
    2 posts
    Member since:
    Aug 2010

    Posted 14 Oct 2010 Link to this post

    How do I remove plus/minus icon, when there's no children in the node. 

    My tree is populated through a wcf service. And it works like its supposed to. But when I a node, that has no children, I would like to remove the plus/minus icon. 

    How to do that in a simple way?

    /Daniel
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 14 Oct 2010 Link to this post

    Hi Daniel,


    The forum shows how to hide the expand/collapse image of the root node of tree.
    Drop Expand/Collapse Image From Root Node

    You can iterate through the nodes (and check for the nodes count) and hide the expand/collapse image using same logic described in forum.

    Hope you can achieve the requirement easily.

    [Note: In my case, it is not showing expand/collapse image for my simple treeview, if there are no child nodes]


    -Shinu.
  3. Daniel
    Daniel avatar
    2 posts
    Member since:
    Aug 2010

    Posted 15 Oct 2010 Link to this post

    That didn't work...

    I need an event that gets fired, like populated when there is subnodes. But can't find any...
Back to Top