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.
I am attaching a sample that the XamDataGrid uses the same layout for both parent and child.
Hi Matt,
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
I am attaching a new sample addressing your two new issues.
Thanks Matt,
You have a solution for all the problems and I always have some other related issue :-) . From this conversation I am getting more familiar with Infragistics grid options.
I had used the 'IsEnabled' property to disabled editing of the child row. However that does not allow me to select anything on the row. And your suggestion on another post I used the AllowEdit to False.
Also, the style for disabled row is not desirable.
PS: I used 'IsEnabled' on the parent row, based on my underlying view model state.
I am attaching a new sample. I created styles targeting the editors that the XamDataGrid uses and setup a binding to the IsReadonly Property of the editor.
Please review my attached sample.
Hi Valeria,
All my issues have been resolved by information provide by Matt.
Hello Bhavesh,
Do you have any other questions on this matter?
Sincerely,
Valerie
Developer Support Supervisor - XAML
Infragistics
www.infragistics.com/support