How do I fix the Record Selector so that it does not scroll out of view during horizontal scrolling ?
HI,
You could set the XamDataGrid's FieldSettings AllowFixing Property and this would cause the record selector to be fixed and remain in view as you scroll horizontally.
Here is a code snippet:
<Custom:XamDataGrid.FieldSettings> <Custom:FieldSettings AllowFixing="NearOrFar"/>
</Custom:XamDataGrid.FieldSettings>
Please let me know if you need further assistance regarding this issue.
Hi Matt,
Restyling the unbound field as record selector and hiding HeaderPrefixArea helps me to Fix the record selector. For my case, I would need some bit of work. I have parent-child field layout which are of same type. I need to keep them in sync, there is some bit of custom handling for sorting, etc.
I had custom style for RecordSelector assuming it would be easier maintain. It would be nice if this feature was a property of RecordSelector and not have to re-purpose on UnboundField and do extra handling everywhere Field is used to drive some logic.
I am attaching a sample that the XamDataGrid uses the same layout for both parent and child.
It was interesting to see how you are adjusting the Margin and Height for child rows to make them appear without header and aligned.
Comparing with my xaml, there are two areas I need to tackle with this single layout solution.
1. Summary: I have defined summary definitions but this need to be available only at the parent level.
2. Disable editing of child rows: I don't want the child rows to be edited. I have the AllowEdit on the child FieldLayout set to False.
The single layout would be preferred approach. I will explore the solution for this items. Please let me know if you have any suggestions.
Thanks,
Bhavesh