how works ExpandableFieldRecordHeaderDisplayMode property?because I have set it to NeverDisplayHeader but has not had any effect on the expandable record header and also changing the value, my datagrid always behaves the same way
Thanks for replyMatteo
Bring up my post.
Hello,
Can you attach a screenshot of what you currently have and what behavior you want to achieve? Are you trying to hide the header record (the labels of the fields) or the expandable field record presenter? Please also note that there are samples in the xam feature browser about the expandable field record presenter header which show the difference.
Here's a screenshot indicating the headers I'd like to hide:
The elements that you have pointed on the screenshots are not the record headers, that is why they are not hidden by setting this property. If you change the value to AlwaysDisplayHeader you will see which is the record header. These are the Field Labels of the nested FieldLayout. They can be hidden by setting the LabelLocation property of the nested layout to Hidden.
Thanks for the help. I added this bit to the xaml file, but all of the labels disappeared. How would I apply it just to the nested layout?
<igDP:XamDataGrid.FieldLayoutSettings>
<igDP:FieldLayoutSettings LabelLocation="Hidden"/>
</igDP:XamDataGrid.FieldLayoutSettings>
<igDP:XamDataGrid>
<igDP:XamDataGrid.FieldLayouts>
<igDP:FieldLayout Key="parent">
<igDP:FieldLayout.Settings>
<igDP:FieldLayoutSettings LabelLocation="Default"/>
</igDP:FieldLayout.Settings>
</igDP:FieldLayout>
<igDP:FieldLayout Key="child">
</igDP:XamDataGrid.FieldLayouts>
</igDP:XamDataGrid>
Thanks. That did it. A follow up question: How do I control (eg set to 0) the spacing marked in red. I've tried templating the ExpandableFieldRecordPresenter, the RecordListControl. I've tried setting Padding and/ or Margin to 0 for the ExpandableFieldRecordPresenter. No luck.
I have a problem with sync widths of fields between parent and child layouts.It seems, the approach above is not working properly, when AutoFit is enabled for the grid.
My version of Infragistics controls is 13.1.
Can someone give an advice or an example of how it can be solved?
Yes, that is possible. You could bind the width of the top level field to the nested field. A sample implementation you can find here by Josh Smith.
Thanks, Alex. That worked.
I wanted to try another possibility, to make the grid more tree like: Is it possible to bind the child row indentation to the width of a column in the parent row. eg, if I expand column 0 in the parent row, the child rows move to the right.
You can see how to remove the indentation here.