Hi,
I was trying to configure the layout of nested fields in XamDataGrid, but I can't figure out how to.
To make it more clear:
I have two objects : Project and Order, Each project has an observable collection of order, so when clicking the plus button next to each project I want to be able to configure which fields of the order should be shown.
<igDp:FieldLayout.Fields> <igDp:Field Name="ProjectName" Label="Name" Width="Auto"/> <igDp:Field Name="ProjectNumber" Label="Number" Width="Auto" /> <igDp:Field Name="Orders" Label="Orders" Width="Auto" /> </igDp:FieldLayout.Fields>
The above code with <igDp:FieldLayoutSettings AutoGenerateFields="False"/> Creates the layout for the first layer, but when clicking plus I only see empty orders.
If I change AutoGenerateFields to true then I see Orders as well but for both Orders and Project it adds unnecessary fields.
I want to be in control of all fields, so the question is how do I create the nested fields ?
I have added a sample project which demonstrates the problem.
Hello Nawed,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Please do not hesitate to let me know if you require any further assistance regarding this matter.
hello Zhivko,
Thank you very much.
That's exactly what I was missing.
Thank you for your post.
I have been looking into your question and what I can suggest is to create second FieldLayout for your child fields. You can take a look at the following forum thread where similar question was discussed:
http://ko.infragistics.com/community/forums/t/30817.aspx
I have modified your project in order to show you how you can achieve your goals. Please let me know if I am missing something from your scenario.
If you require any further assistance regarding this matter, please do not hesitate to let me know.