Hello,
I have the following data structure:Collection Item Subitems Where the Collection has Multiple Items, but the Items themself have their own Collections of Items (see image)
Now when I bind my XamDataGrid to a DataCollection with subitems, they display fine, but it only uses the parent FieldLayout. This way I cannot specify a custom fieldlayout for the subitems.
How can I get this working?
Hello again,
As I said previously there isn't any build in functionality for this. I created a sample project fro you with the functionality you want based on the approaches used in the links I shared with you.
Hi,
If it is self-referencing, how to you supress the header for the child and have the child appear in the same columns as the parent. There is an example for the xamGrid but not the xamDataGrid.
Thanks.
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post and I suggest you see this blog about defining FieldLayout:
http://blogs.infragistics.com/blogs/petar_monov/archive/2011/05/13/how-to-define-fieldlayouts-how-fieldlyouts-are-mapped.aspx
Also if you want to make one Property expandable and show its “SubProperties” you can define its Field in the XamDataGrid and set its IsEexpandable Property to True and define a FieldLayout for it. In your case you will have two ChildFieldLayouts for every Record. One for the SubItems Collection and one for the DataItem Collection.
Feel free to write me if you have further questions.
same problem !