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.
I will post the sample before Monday.
Thanks!
Curtis
I have a new blog that shows how to apply templates to support multiple levels in the XamWebTree:http://community.infragistics.com/blogs/curtis_taylor/archive/2010/06/23/control-monster-explores-multi-level-xamtrees-part-i.aspx
Later this week I will address the issue of recursive trees and how to make them work.
The strength of our approach to adding data to the XamWebTree is that you can have a highly complex tree and assigning data templates to each level is straightforward once you understand the object model. I would consider the ability to auto-assign a data template to every tree level implicitly as a cool feature request.
If you would like to make that request, please add it to the following webpage:https://es.infragistics.com/community/ideas
Thank you!
Hi,
With out using Expression Blend , could you share the sample ?
Regards,
Amarendra.
Attached is a Visual Studio 2010 sample project that illustrates using multiple templates with the XamTree.
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, that is correct.
Gary
Hello Gary,
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
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://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 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.