Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
130
FieldLayoutSettings for Child Object
posted

Question.

How do I set the field layout for child objects?

I have bound a hierarchical object collection to the grid.  Organisations > Contacts.  This worked as expected with contacts appearing under the organisation and the ability to exand and contract.

The next step though was to setup the columns as I wanted. So I set the AutoGenerateFields and manually set the fields i want.  Again this worked but now I do not have the contacts below the organisations. 

<igDP:FieldLayout >
                    <igDP:FieldLayout >
                    <igDP:FieldLayout.Fields>
                        <igDP:Field  Name="Organisation" Label="Organisation" IsExpandable="False" IsPrimary="true" Row="0" />
                    </igDP:FieldLayout.Fields>
                </igDP:FieldLayout>
      ...