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 ?
btw, Is this the place to post CTP bug's ?
And it all works fine when not using FieldSortDescription's, but after populating doing a groupby or a sort the breakpoints are hit. It just doesn't work initially.
The bug doesn't occur when setting below, but then it just doesn't group. And Breakpoints in the Grouping and Grouped events aren't being hit
GroupByEvaluationMode="UseCollectionView"
Since noone has an answer i will have to step back and do workarounds. I would had some time to implement the manual sorting.
Setting SortEvaluationMode to Manual has too many bugs.
When modifying the collection, while databinded, and grouped on some fields.. it just raise the exception as in my first post.
Hello Raymond,
Thank you for your post. I have been looking into it, but it seems like I am missing something about your scenario, so if this is still an issue for you, could you please send me an isolated sample project, where this is reproduced, so I can investigate it further for you.
Looking forward for your reply.
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.
I downloaded the SP and that fixed it in my sample project. Thanks.
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://ko.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://ko.infragistics.com/Membership/MySupport.aspx