I'm using the XamDatagrid Custom ExpandableFieldRecordPresenter Style example provided in the Infragistics WPF Samples Browser 2016.1.
My issue is that I have a horizontal scroll bar because the table possess many columns. When I scroll, the Expandable Field Record Header is getting scrolled out of the way. I want it to stay in place.
I tried switching this header to horizontal, but the same thing happened. The text is just getting scrolled out as I scroll to the right.
Now I assume there must be a way of doing it because if I don't change the style the text in the Expandable Field Record Header is following the horizontal scroll bar.
I have been investigating into this behavior, and it does not appear that this is really possible. When a portion of the XamDataGrid is horizontally scrollable, it scrolls the entirety of the panel, and so it will scroll the ExpandableFieldRecordPresenter out of view. I am rather curious as to the settings that you are currently using as you have mentioned that if you do not change the Style, the text is staying in view, and I cannot seem to reproduce this behavior.
I have tested this against versions 17.2.20172.2029 in Infragistics for WPF 2017.2 as well as the latest 2016.1 build, as you have referenced the 2016.1 samples browser (16.1.20161.2231), and in neither of these builds does the ExpandableFieldRecordPresenter follow the horizontal scrollbar. I am attaching the sample project that I used to test this. Would it be possible for you to please modify it such that it reproduces the behavior that you are seeing in which the ExpandableFieldRecordPresenter follows the horizontal scroll bar?
Please let me know if you have any other questions or concerns on this matter.
Thanks for your quick response,
In order to have the ExpandableFieldRecordPresenter follow the horizontal scrolling bar you need to add AllowFixing="NearOrFar" in your <ig:FieldSettings />
I know that Allowfixing is to keep cells in vision, but it seems to have effects on the title.
Thank you for your update on this matter. I have added the FieldSettings.AllowFixing tag to my XAML and now I see the default scrolling behavior that you are referring to.
I have been comparing the default style of the ExpandableFieldRecordPresenter with the one given in the samples browser, and unfortunately, I do not believe that the horizontal "fixed" scrolling will be possible in this case. The samples browser style re-templates the ExpandableFieldRecordPresenter such that there is an extra Grid.ColumnDefinition associated with that element when the XamDataGrid.ViewSettings.UseNestedPanels property is set to true.
This new Grid.ColumnDefinition places the ExpandableFieldRecordPresenter to the far right of the "nested panel" area, which is essentially the entire area of your expanded hierarchy for a particular band. This places the ExpandableFieldRecordPresenter to the left of the fixed-Field area, which is the cutoff for scrolling, but it is necessary to have the presenter be displayed vertically. This still happens in the case of the samples browser style if the presenter is displayed horizontally, though.
As such, if you would like to see fixed, vertical ExpandableFieldRecordPresenter support included in the XamDataGrid in a future version of the control, I would recommend suggesting a new product idea for this feature at our new product ideas website for WPF, https://www.infragistics.com/community/ideas/i/ultimate-ui-for-wpf. This will place you in direct communication with our product management teams who plan and prioritize upcoming features and development based on community and user feedback.