This is a migrated thread and some comments may be shown as answers.

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

2 Answers 53 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 12 Jan 2010, 11:54 PM
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 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 15 Jan 2010, 09:56 AM
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.
0
Andrew
Top achievements
Rank 1
answered on 16 Jan 2010, 12:40 AM
Thanks, this did the trick!

Andrew
Tags
TreeView
Asked by
Andrew
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or