Problem grouping items

Hello, I have a problem with the grouping property of the sflistview component, my grouper is composed of three variables, one of which changes in execution time, but does not reassign listview items from one side to another, it is simply to show values in the groupheadertemplate through converters. And when changing the value of one of the properties, I get the following error:
UNHANDLED EXCEPTION:
System.ArgumentOutOfRangeException: 2 out of range 0 to 1
Parameter name: to

This is the complete error:

01-26 17:34:15.867 I/MonoDroid(18801): UNHANDLED EXCEPTION:
01-26 17:34:15.890 I/MonoDroid(18801): System.ArgumentOutOfRangeException: 2 out of range 0 to 1
01-26 17:34:15.890 I/MonoDroid(18801): Parameter name: to
01-26 17:34:15.890 I/MonoDroid(18801):   at Syncfusion.GridCommon.ScrollAxis.DistanceRangeCounterCollection.CheckRange (System.String paramName, System.Int32 from, System.Int32 to, System.Int32 actualValue) [0x00046] in <464975a2cf1f44e3bc9aa7abc9cdd341>:0 
01-26 17:34:15.890 I/MonoDroid(18801):   at Syncfusion.GridCommon.ScrollAxis.DistanceRangeCounterCollection.SetRange (System.Int32 from, System.Int32 to, System.Double distance) [0x00022] in <464975a2cf1f44e3bc9aa7abc9cdd341>:0 
01-26 17:34:15.890 I/MonoDroid(18801):   at Syncfusion.GridCommon.ScrollAxis.LineSizeCollection.InitializeDistances () [0x00101] in <464975a2cf1f44e3bc9aa7abc9cdd341>:0 
01-26 17:34:15.890 I/MonoDroid(18801):   at Syncfusion.GridCommon.ScrollAxis.LineSizeCollection.ResumeUpdates () [0x0001e] in <464975a2cf1f44e3bc9aa7abc9cdd341>:0 
01-26 17:34:15.890 I/MonoDroid(18801):   at Syncfusion.ListView.XForms.LinearLayout.EnsureItems (Syncfusion.GridCommon.ScrollAxis.VisibleLinesCollection visibleLines) [0x002ee] in <4b5a7cea83394af5945b5c1c0e00b615>:0 
01-26 17:34:15.890 I/MonoDroid(18801):   at Syncfusion.ListView.XForms.VisualContainer.EnsureItems () [0x0002b] in <4b5a7cea83394af5945b5c1c0e00b615>:0 
01-26 17:34:15.890 I/MonoDroid(18801):   at Syncfusion.ListView.XForms.VisualContainer.OnSizeAllocated (System.Double width, System.Double height) [0x0003f] in <4b5a7cea83394af5945b5c1c0e00b615>:0 
01-26 17:34:15.890 I/MonoDroid(18801):   at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\VisualElement.cs:637 
01-26 17:34:15.890 I/MonoDroid(18801):   at Xamarin.Forms.Layout.ForceLayout () [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\Layout.cs:115 
01-26 17:34:15.890 I/MonoDroid(18801):   at Syncfusion.ListView.XForms.LinearLayout.OnItemsCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x000d2] in <4b5a7cea83394af5945b5c1c0e00b615>:0 
01-26 17:34:15.890 I/MonoDroid(18801):   at Syncfusion.ListView.XForms.SfListView.DisplayItems_CollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0000f] in <4b5a7cea83394af5945b5c1c0e00b615>:0 
01-26 17:34:15.890 I/MonoDroid(18801):   at Syncfusion.DataSource.DisplayItems.RaiseCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs args) [0x00008] in <f5ca9335fffd4951a5ad546c22562638>:0 
01-26 17:34:15.890 I/MonoDroid(18801):   at Syncfusion.DataSource.GroupList.RemoveItemInGroup (System.Object item) [0x00023] in <f5ca9335fffd4951a5ad546c22562638>:0 
01-26 17:34:15.890 I/MonoDroid(18801):   at Syncfusion.DataSource.DataSource.NotifyPropertyChangedHandler (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x000a0] in <f5ca9335fffd4951a5ad546c22562638>:0 
01-26 17:34:15.890 I/MonoDroid(18801):   at Syncfusion.DataSource.DataSource.OnPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00009] in <f5ca9335fffd4951a5ad546c22562638>:0 
01-26 17:34:15.890 I/MonoDroid(18801):   at (wrapper delegate-invoke) <Module>:invoke_void_object_PropertyChangedEventArgs (object,System.ComponentModel.PropertyChangedEventArgs)
01-26 17:34:15.890 I/MonoDroid(18801):   at Preventa_MDS_SAP.Models.VistaEntregas.OnPropertyChanged (System.String name) [0x0000e] in G:\CocaCola\Beta\Preventa MDS SAP\Preventa MDS SAP\Preventa_MDS_SAP\Models\VistaEntregas.cs:157 
01-26 17:34:15.890 I/MonoDroid(18801):   at Preventa_MDS_SAP.Models.VistaEntregas.set_AgrupadorDocumento (System.String value) [0x00008] in G:\CocaCola\Beta\Preventa MDS SAP\Preventa MDS SAP\Preventa_MDS_SAP\Models\VistaEntregas.cs:144 
01-26 17:34:15.890 I/MonoDroid(18801):   at Preventa_MDS_SAP.Models.VistaEntregas.AsignarAgrupador () [0x00001] in G:\CocaCola\Beta\Preventa MDS SAP\Preventa MDS SAP\Preventa_MDS_SAP\Models\VistaEntregas.cs:150 
01-26 17:34:15.890 I/MonoDroid(18801):   at Preventa_MDS_SAP.Models.VistaEntregas.set_TotalDocumento (System.Double value) [0x00014] in G:\CocaCola\Beta\Preventa MDS SAP\Preventa MDS SAP\Preventa_MDS_SAP\Models\VistaEntregas.cs:111 
01-26 17:34:15.891 I/MonoDroid(18801):   at Preventa_MDS_SAP.Pages.Ventas.Cliente.Ventas.Entregas+<>c__DisplayClass12_0.<ActualizarTotalDocumento>b__2 () [0x000a3] in G:\CocaCola\Beta\Preventa MDS SAP\Preventa MDS SAP\Preventa_MDS_SAP\Pages\Ventas\Cliente\Ventas\Entregas.xaml.cs:323 
01-26 17:34:15.891 I/MonoDroid(18801):   at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <e975227ac8644a30bb0866117325de0d>:0 
01-26 17:34:15.891 I/MonoDroid(18801):   at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00008] in <e975227ac8644a30bb0866117325de0d>:0 
01-26 17:34:15.891 I/MonoDroid(18801):   at (wrapper dynamic-method) System.Object:303af2e5-8a2d-44dc-bd19-3d77efbfb328 (intptr,intptr)


I am using version 15.4.0.20 of syncfusion. And I attach my files in case you want to review the procedure in detail.

Attachment: Syncfusion_d81064f8.zip

3 Replies

MK Muthu Kumaran Gnanavinayagam Syncfusion Team January 29, 2018 02:27 PM UTC

Hi Jans, 
 
We have checked the reported query “ArugmentOutOfRangeException thrown from CheckRange method” from our side. We would like to inform you that the reported issue has been fixed in SfListView (v.15.3.0.26). So could you please check whether you have updated to latest version of SfListView NuGet packages in your application? 
 
We have referred the attached XAML page from our side. We need to analyze the operation you are performing in your converter class while modifying the GroupDescriptor’s Key value. So could you please share the converter file which helps to understand the usage of SfListView in your application at our end? 
 
Regards, 
G.Muthu kumaran. 



JI Jans Izac Martinez Morentin January 30, 2018 12:21 AM UTC

Of course! I update the version at (v.15.3.0.26) and the problem is present. Here is the files with the Converters, I don't know what happend because I was using this method with no problems.

Attachment: AgrupadorEntregasConverter_814f948b.zip


DB Dinesh Babu Yadav Syncfusion Team January 30, 2018 04:25 PM UTC

Hi Jans, 
 
Sorry for the inconvenience. 
 
Based on the given information and code example, we have tried to replicate the reported issue by changing the value of the underlying property name in the data model object by tapping the image in the GroupHeaderTemplate property to replicate the issue. But the value gets changed as expected in latest SfListView version (v15.2.0.40) and we did not face any issue as reported. For your reference, we have attached the ensured sample at our end and you can download it from the below link. 
 
 
Could you please check with the above sample and if possible please modify the sample to replicate the issue and revert us with the replication procedure. So, that we could able to analyze the issue better and update you an appropriate solution. 
 
Please let us know if you require further assistance. 
 
Dinesh Babu Yadav 
 


Loader.
Up arrow icon