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.
Hi Curtis,
I tried your example "MultiTree". In SampleDataSource.xaml only have two leves, then i added a leve more. But it didn't work.
My ig version is 10.2.20102.1029 and my project is SL 4.0
Please, ¿Can you upload an example with three or more levels?
Thanks
Jaimir G.
Yes, I will post that as soon as I am able. Do you prefer Visual Studio 2008 over 2010?
Thank for your response.
We are working in vs 2010.
Hi Jamir,
I just wanted to let you know that I just posted a blog that demonstrates how to add the third level of data to the XamTree. The blog also shows how to work with recursive trees.
https://ko.infragistics.com/community/blogs/b/curtis_taylor/posts/control-monster-explores-multi-level-xamtrees-part-ii
The blog includes the sample source code as well.
Let me know if this works for you.
Thanks!
Hi Curtis
First, thank you very much for your time and your interest.
I already read your blog and download the sample, it worked perfectly.
What caught my attention, is that you need to include "HierarchicalDataTemplate" levels. As says Rovina, in the "ms toolkit treeview" it is only necessary to create one level and the control automatically generates the hierarchy recursively. It would be an interesting enhancement for a future release of the XamTree.
We thank again,
Yes, that is correct.
Gary
Hello Gary,
I believe that Brian has already answered your question here:
https://ko.infragistics.com/community/forums/f/retired-products-and-controls/84248/xamtree-with-recursive-data/420632#420632
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?
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://ko.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 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.