I've turned on manual sorting using the new Infragistics version.The following exception got raised when binding my list to the datasource (and datacontext, etc)Object reference not set to an instance of an object. at Infragistics.Windows.DataPresenter.GroupByRecord.DoesRecordMatchGroupHelper(DataRecord record, IGroupByEvaluator evaluator) at Infragistics.Windows.DataPresenter.GroupByRecord.DoesRecordMatchGroup(DataRecord record, Boolean recursive, IGroupByEvaluator evaluator) at Infragistics.Windows.DataPresenter.RecordCollectionBase.CreateGroupByRecordRecords(DataRecord[] records, Int32& startIndex, IGroupByEvaluator groupByEvaluator) at Infragistics.Windows.DataPresenter.RecordCollectionBase.CreateGroupByRecordsHelper(DataRecord[] records, Int32& startIndex) at Infragistics.Windows.DataPresenter.RecordCollectionBase.CreateGroupByRecordsHelper(DataRecord[] records, Int32& startIndex) at Infragistics.Windows.DataPresenter.RecordCollectionBase.CreateGroupByRecordsHelper(DataRecord[] records, Int32& startIndex) at Infragistics.Windows.DataPresenter.RecordCollectionBase.CreateGroupByRecordsHelper(DataRecord[] records, Int32& startIndex) at Infragistics.Windows.DataPresenter.RecordCollectionBase.CreateGroupByRecordsHelper(DataRecord[] records) at Infragistics.Windows.DataPresenter.RecordManager.VerifySort() at Infragistics.Windows.DataPresenter.RecordManager.OnSourceCollectionReset() at Infragistics.Windows.DataPresenter.RecordManager.OnSourceCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) at Infragistics.Windows.DataPresenter.RecordManager.ProcessChangeNotification(Object sender, Object eventArgs) at Infragistics.Windows.DataPresenter.RecordManager.OnChangeNotification(Object sender, Object eventArgs, Boolean isReset) at Infragistics.Windows.DataPresenter.RecordManager.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e) at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list) at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args) at System.Collections.Specialized.CollectionChangedEventManager.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args) at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)The breakpoints set in the events attributes of the xamDataGrid aren't being hit.Sorting="dg_Sorting"Sorted="dg_Sorted"
It happens when having SortedFields in the FieldLayout.I know to set fields as GroupBy="True" in the FieldSortDescription, but with this exception i'm clueless.
Is there a way to fix this while having Manual Sorting set to true ?
I downloaded the SP and that fixed it in my sample project. Thanks.
Hello Raymond,
We have shipped out a new service release where your issue is resolved. I'd be glad to find out if you had tested it out and if it had met your requirements.
You can download the Service Releases by logging to our web site and going to Account \My Keys and Downloads.
I have logged this with development under ID: 113458 and I have also created a support ticket on your behalf: CAS-92515-T8Y29C and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://es.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://es.infragistics.com/Membership/MySupport.aspx
I managed to reproduce the exception in an isolated sample project. It happens having a combination of a filled observable collection and having FieldSortDescription with GroupBy=True
If you slash away the populating in the Page_Loaded then the exception will not be raised.
See the attached sample.
Hello,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.