Hi,
I have a treeview bound to an observablecollection, each node has an observablecollection of children and so on for the entire hierarchy. Is there a way to have the treeview node expand automatically as children are added to the object that it is bound to?
Thanks,
I have a treeview bound to an observablecollection, each node has an observablecollection of children and so on for the entire hierarchy. Is there a way to have the treeview node expand automatically as children are added to the object that it is bound to?
Thanks,
4 Answers, 1 is accepted
0
Hello Ben,
Regards,
Boryana
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.
Regards,
Boryana
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
Hi Ben,
Please find attached a sample project.
I hope that this will help you.
Please let us know if you have any other questions or need some more help.
Greetings,
Boryana
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.
Please find attached a sample project.
I hope that this will help you.
Please let us know if you have any other questions or need some more help.
Greetings,
Boryana
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
Ben
Top achievements
Rank 1
answered on 13 Nov 2009, 03:57 PM
I forgot to mention that all the tree items are loaded on demand.
The complete picture is:
1) User uses a seperate interface to search for an item.
2) Item is located somwhere within the hierarchy of the tree, none of the tree nodes have been loaded yet.
3) Using a collection of identifiers I want to expand a sequence of nodes to expose the item the user searched for.
Since my tree is already bound to a hierarchy of observablecollections I thought it would be easier to just figure out how to have nodes expand automatically when children are added.
The complete picture is:
1) User uses a seperate interface to search for an item.
2) Item is located somwhere within the hierarchy of the tree, none of the tree nodes have been loaded yet.
3) Using a collection of identifiers I want to expand a sequence of nodes to expose the item the user searched for.
Since my tree is already bound to a hierarchy of observablecollections I thought it would be easier to just figure out how to have nodes expand automatically when children are added.
0
Hello Ben,
I have prepared a small project that demonstrates how add an item to a node and expand the treeview to that node. The treeview in the demo has a 3-level hierarchy. Have a look at the sample project and let me know how this works for you.
Best wishes,
Kiril Stanoev
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.
I have prepared a small project that demonstrates how add an item to a node and expand the treeview to that node. The treeview in the demo has a 3-level hierarchy. Have a look at the sample project and let me know how this works for you.
Best wishes,
Kiril Stanoev
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.