Hi
I'm trying to create a xamwebtree with 3 levels. The data source is a web service (for now it's a RIA Service). Is there a sample with the xaml and c# code? In the available samples I just find 2 level xamwebtrees with a xml-datasource.
I have another question about recursive webtrees. There is a nice sample for the toolkit treeview ( http://blogs.msdn.com/jasonall/archive/2009/11/25/hierarchical-data-trees-with-a-database.aspx ). Is this possible to do with the xamwebtree.
Thanks for your help.
Stefan
Rovina+Partner AG
Hello Rovina,
Yes, the data binding part of sany sample you find with the Toolkit Tree should work with the XamWebTree. Let us know if you have any issue applying that tactic. Would you still like to see a three level tree example. I could put together a sample for you. Let me know and I will post it here.
Thank you,
I am also having the same issue. I dont know the depth of the hierarchy. I want to bind the treeview at runtime. But in Infragistics Xamwebtree we need to define the DataTemplate for each level. This is something strange with Infragistics.
Hello Jaimir,
I am in exactly the same situation, and I was just wondering if you, or anyone else on this thread was ever able to find a solution?
The given solution where you have to know ahead of time the number of levels of the tree seems very limiting.
Thanks
Gary
Hello Gary,
Currently the only way is to define all your NodeLayouts either in XAML or C# and AutoGenerate NodeLayouts has been determined to be a new product idea. You can suggest new product ideas for future versions (or vote for existing ones) at https://es.infragistics.com/community/ideas.
There are many benefits to submitting an product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Hello,
Thank you for getting back to me about this, and I understand the need for the Product Idea Request.
However, in another thread, it was suggested that I should be able to use the XamDataTree to provide the additional n-level depth requirement.
What I have is something like the following:
Tree
-- List<TreeNode>
Where each TreeNode itself has a List<TreeNode>
i.e. a Fully Recursive Tree, which I am trying to display in the XamDataTree. I have defined a GlobalNodeLayout as follows:
<ig:XamDataTree x:Name="MyTree"> <ig:XamDataTree.GlobalNodeLayouts> <ig:NodeLayout Key="TreeNodeLayout" TargetTypeName="TreeNode" DisplayMemberPath="Caption"> </ig:NodeLayout> </ig:XamDataTree.GlobalNodeLayouts> </ig:XamDataTree>
But I only ever get the first items in the collection, it doesn't show the child items.
Am I missing something?
I believe that Brian has already answered your question here:
https://es.infragistics.com/community/forums/f/retired-products-and-controls/84248/xamtree-with-recursive-data/420632#420632
Yes, that is correct.