I am trying to figure out how to bind a dataset datatable "Typed" with a self referencing relationship into the tree. I have tried many options none of witch seem to work. I sort of understand the relationship between the TargetTypeName and the underlying data. From my unerstanding its not a property or method but a type that it is trying to match in the underlying data source... I think? If so then the type for both my nodes parent and child is the same... and that did not work... This is simple to recreate... I used the employees table from northwind but any self referencing dataset datatable will do.
EmployeesTable returns a stringly typed EmployeesDataTable - Example from Northwind DB Employees table.
I get the first level but cant seem to get anything else... Plus since this releationship can go more than two deep do i need to create another nodelayout one for as many levels as i think my data will go or is one second child level enough for it to create all other levels based on the data. The ChildLayout below is not working this was just one thing i tried.. Also can you explain a little more on how the key comes into play. I read a post the described its usage in some cases to assist in finding the item... but not quite sure how this works.
<ig:XamDataTree ItemsSource="{Binding EmployeesTable}" Name="employeesXamDataTree"> <ig:XamDataTree.GlobalNodeLayouts> <ig:NodeLayout Key="ParentLayout" TargetTypeName="EmployeesRow" DisplayMemberPath="LastName"/> <ig:NodeLayout Key="ChildLayout" TargetTypeName="EmployeesRow.GetEmployeesRows" DisplayMemberPath="Title"/> </ig:XamDataTree.GlobalNodeLayouts> </ig:XamDataTree>
I moved this from the Silverlight section to WPF. My previous post was in Silverlight section by accident.
Basically just trying to figure out how the set the options in xaml to get a dataset
with a self referencing relationship to show the data in the tree with parent and children
based on the relationship.
Thanks in advance
I also have the same issue of bands displayed above. I want to create parent child relationships with the same type
Hello ks4561,
I have created the following case for you : CAS-80950-S3W0FM and now you can send your isolated sample.
Sorry it to so long to get back on this I just needed some time to collect everything so you could re-product the dev environment. I have attached a zip file the project and sql scripts and data to recreated the db.. I have also included a SQL Backup file if that can be used. There is not much to the db. I have also attached a word document that describes my problem or desire with detail screen shots and references to the previous posts for convenience.
I tried to attach the files you have requested so that you can re-produce the problem. But there is an upload limit of 200k for the files. can you contact me via my email with an direct email I can send these fields to. Thanks.
I am just checking your progress on the issue.
If you require any further assistance please do not hesitate to ask.
Sorry for my late reply. I have been looking into your posts and would you please send me your datasource, in order to be able to provide you with more accurate assistance. If possible send me your sample application where this issue occurs.
I am looking forward to hearing from you.