Hide Collapse/Expand Image for Node with no Children when loading from web service

3 posts, 0 answers
  1. Andrew
    Andrew avatar
    14 posts
    Member since:
    Apr 2009

    Posted 12 Jan 2010 Link to this post

    Hi, I have a treeview that I am populating on demand from a web service...it works great!  Only thing is, when a set of child nodes is returned, I'd like to hide the collapse/expand image for any of those child nodes that themselves don't have any children while showing the collapse/expand image for any nodes that do have children.  How would I do this?

    Thanks in advance,
    Andrew
  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 15 Jan 2010 Link to this post

    Hello Andrew,

    When adding the child nodes do the following:
    If the node has children - set its ExpandMode to WebService, otherwise set it to ClientSide.

    This should be enough.

    All the best,
    Veskoni
    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.
  3. Andrew
    Andrew avatar
    14 posts
    Member since:
    Apr 2009

    Posted 15 Jan 2010 Link to this post

    Thanks, this did the trick!

    Andrew
Back to Top