Dragging the last item in a group into another group causes a crash
I have a SfListView with grouping based on one of the object's properties.
when dragging an object which alone in it's group to another group the program crashes.
The dragged object property is updated automatically, because DragDropController.UpdateSource is set to True
The exception:
Exception = {"Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')"}
" at System.ThrowHelper.ThrowArgumentOutOfRange_IndexMustBeLessException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Syncfusion.Maui.GridCommon.ScrollAxis.SortedRangeValueList`1.Split(Int32 index, Int32 n)
at Syncfusion.Maui.GridCommon.ScrollAxis.SortedRangeValueList`1.Split(Int32 index)
at Syncfusion.Maui.GridCommon.ScrollAxis.SortedRangeValueList`1.RemoveHelper(Int32 removeAt, Int32 count, SortedRangeValueList`1 moveRanges)
at Syncfusion.Maui.GridCommon.ScrollAxis.SortedRangeValueList`1.Remove(Int32 removeAt, Int32 count, SortedRangeValueList`1 moveRanges)
at Syncfusion.Maui.GridCommon.ScrollAxis.LineSizeCollection.RemoveLines(Int32 removeAtLine, Int32 count, IEditableLineSizeHost movelines)
at Syncfusion.Maui.GridCommon.ScrollAxis.LineSizeCollection.RemoveLines(Int32 removeAtLine, Int32 count)
at Syncfusion.Maui.ListView.DragDropController.UpdateDraggedItem(Object dragItem)
at Syncfusion.Maui.ListView.DragDropController.ProcessDragEnded()
at Syncfusion.Maui.ListView.DragDropController.HandleTouchInteractions(ListViewItemInfoBase itemInfo, GestureStatus status, Point point, Point touchPosition)
at Syncfusion.Maui.ListView.DragIndicatorView.OnTouch(PointerEventArgs e)
at Syncfusion.Maui.Core.Internals.TouchDetector.OnTouchAction(PointerEventArgs eventArgs)
at Syncfusion.Maui.Core.Internals.TouchDetector.OnTouchAction(Int64 pointerId, PointerActions action, PointerDeviceType deviceType, Point point)
at Syncfusion.Maui.Core.Internals.TouchDetector.PlatformView_PointerReleased(Object sender, PointerRoutedEventArgs e)
at ABI.Microsoft.UI.Xaml.Input.PointerEventHandler.Do_Abi_Invoke(IntPtr thisPtr, IntPtr sender, IntPtr e)"
Hi Alon,
We have thoroughly reviewed your query, but unfortunately, we haven't been able to replicate the mentioned exception on our end. To assist you more effectively, could you kindly provide us with the code snippet related to data population and SfListView initialization, along with the properties used?
Additionally, it would be immensely helpful if you could share a video demonstration illustrating how to reproduce the issue, along with device details. This will significantly expedite our validation process and allow us to offer you a better solution.
For your convenience, we have attached the sample that we tested. If we overlooked any customizations, please do not hesitate to share the modified sample with us."
Regards,
Diwakar V
Attachment: ListViewMaui_877f8b85.zip
Hi Diwakar
Thanks for your reply.
I took the sample you sent as is - and drag the last item from the Extra group to be the last item of the Other group - and the program crashed with the same exception
please, see attached video
https://shmainstorage.blob.core.windows.net/alon/2023-08-16_18-21-12.mp4
Regards,
alon.
Alon,
We can able to reproduce the reported issue and logged a bug report for “ArgumentOutOfRange exception throw when dropping an item in another group”. We will fix the issue and include it in our upcoming weekly nuget which is scheduled for Sept 5, 2023. We will let you know once it is released with the fix. We appreciate your patience until then.
You can also track the status of the report from the below link.
Feedback Link: https://www.syncfusion.com/feedback/46191/argumentoutofrange-exception-is-thrown-when-dropping-items-between-groups
Disclaimer: The inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.
thank you for your support
Hi Alon,
We apologize for the inconvenience caused. Since we need to test more use cases
related to the fix, we are unable to include it in this weekly NuGet. We will
include the fix in our upcoming main release, which is scheduled for Sep
15,2023. We will notify you once it is released with the fix.
We appreciate your patience until then.
Alon,
We sincerely apologize for the ongoing delay in delivering the fix. Regrettably, due to the complexity of the issue and the need for thorough testing, we are unable to include it in the release. However, we are committed to resolving this matter, and the fix will be included in the release scheduled for October 3, 2023. We will promptly notify you once it becomes available. Your patience and understanding are greatly appreciated.
Alon,
We sincerely apologize for the continuous delay in providing the fix. We regret to inform you that the testing for the fix is still ongoing. We need to test it on each platform thoroughly. Therefore, we require additional time to ensure the solution's effectiveness. The fix will be included in our upcoming Volume 3 SP release, scheduled for mid-November. We truly appreciate your patience until then.
Alon,
Thanks for your patience.
We have included the fix for the reported issue in our latest weekly NuGet release v24.2.5 which is available for download ( https://www.nuget.org/ ). We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you require any further assistance.
We are running 24.2.8, and are unfortunately seeing this issue as well. Is this fixed in a major release in addition to the 24.2.5 patch?
Hi Aaron Eversole,
We have checked your requirement, we have ensured the reported scenario, dragging the items between the groups works fine at our end. We have ensured the same in 24.2.8 and above , up to our current version, which works fine at our end. We have attached the tested the sample for your reference. Please have a look at the sample and let us know if we have missed any customization that you have done in your sample. Kindly share the issue details , stack trace or any other details related to the reported issue will help us to find the solution as soon as possible.
Also we would like to let you know that the we have included the fix our nuget release , Kindly let us know if you have any concerns.
Attachment: MauiListView_cc720296.zip
Hi, Suthi.
It seems like this is happening in our app when we drop a listview item on a header. In the sample app, this is not possible.
Aaron Eversole,
We have checked your requirement , we have tested the sample with dropping the item on the header , we are unable to reproduce the issue at our end. We have attached the sample and output for your reference. Please have a look at the sample and let us know if we have missed any customization that you have done in your sample.
If the issue still presists , kindly modify the sample to reproduce the issue or kindly share the code snippet or any customization that you have done to reproduce the issue and find the solution as soon as possible.
Attachment: MauiListView_a98aa8b7.zip
- 12 Replies
- 5 Participants
-
AL alon
- Aug 15, 2023 02:33 PM UTC
- May 16, 2024 02:19 PM UTC