Hi,
We've just upgraded to WPF and a XamDataPresenter's row selection has stopped working. Has anything from the default settings changed that we need to override?
Thanks.
PS - Please find below the control declaration in XAML. You can ignore the attached behaviour. It subscribes to the SelectedItemsChanged event, which doesn't get raised anymore. It does when working with a XamDataGrid.
<igDP:XamDataPresenter Name="xamDataPresenter1" Theme="Office2k7Black" ScrollingMode="Immediate" DataSource="{Binding DealHistoryList}" ActiveRecord="{Binding ActiveRequestDetails, Converter={StaticResource RowConverter}, Mode=TwoWay}" MouseDoubleClick="xamDataPresenter1_MouseDoubleClick" infraControls:XamDataGridItemsHelper.SelectedDataItemsEnabled="True" infraControls:XamDataGridItemsHelper.SelectedDataItems="{Binding SelectedItems, Mode=TwoWay}" Infragistics:XamDataGridSettingsHelper.ActivateRecordOnRightClick="True" GroupByAreaLocation="None">
These are the FieldSettnigs and FieldLayoutSettings that we have currently setup for our control.
<igDP:XamDataPresenter.FieldSettings> <igDP:FieldSettings CellClickAction="SelectRecord" ExpandableFieldRecordHeaderDisplayMode="NeverDisplayHeader" /> </igDP:XamDataPresenter.FieldSettings> <igDP:XamDataPresenter.FieldLayoutSettings> <igDP:FieldLayoutSettings MaxSelectedRecords="2" AutoGenerateFields="False" ExpansionIndicatorDisplayMode="CheckOnDisplay"/> </igDP:XamDataPresenter.FieldLayoutSettings>
Yes, it does work now. As I said, we have resorted to use the ActiveDataItem property and everything is now all right.
Hello,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
I have been looking into your issue and have been trying to replicate on my side, but to no avail. I do not know the version you are working with and where do the XamDataGridSettingsHelper class comes from. I was wondering if you could provide me with a test sample I can work on.
Looking forward to your reply.
Looks like the ActiveRecord binding doesn't work - we've just switched over to ActiveDataItem and selection works again.
BTW, have also tried to copy the field/fieldlayout settings from a XamDatagrid that is working, but doesn't work either.