Hello
There seems to be a problem with the SfTreeView control when using a device or simulator running iOS 14 and the app was built with the latest Visual Studio version.
The exception is as follows:
"Index was outside the bounds of the array."
Could you please have a loot at this and see if it still works on your side?
I use the latest Visual Studio 2019 version 16.7.4 (Windows).
On the Mac, the Visual Studio version is as follows:
MacOSX: 10.15.6
Visual Studio Community 2019 for Mac: 8.7.8
Mono Framework MDK: 6.12.0.93
.Net Core SDK: 3.1.402
.Net Core Runtime: 3.1.8
Xamarin.Max: 6.20.2.2
Xamarin.iOS: 14.0.0.0
Here is the stacktrace:
at Syncfusion.iOS.TreeView.TreeViewItemHolder.GetChildView () [0x00006] in <e90a1f42ec644755befe74ada39edca4>:0
at Syncfusion.iOS.TreeView.TreeViewAdapter.UpdateView (UIKit.UICollectionViewCell itemview, System.Int32 position) [0x00000] in <e90a1f42ec644755befe74ada39edca4>:0
at Syncfusion.iOS.TreeView.ItemGenerator.UpdateNodeItem (Syncfusion.iOS.TreeView.TreeViewItemInfoBase itemInfo, System.Int32 rowindex, Syncfusion.TreeView.Engine.TreeViewNode treeViewnode) [0x00162] in <e90a1f42ec644755befe74ada39edca4>:0
at Syncfusion.iOS.TreeView.ItemGenerator.CreateNodeItem (System.Int32 rowindex, Syncfusion.TreeView.Engine.TreeViewNode treeViewNode) [0x00068] in <e90a1f42ec644755befe74ada39edca4>:0
at Syncfusion.iOS.TreeView.LayoutBase.CreateTreeViewItem (System.Int32 itemIndex, Syncfusion.XForms.TreeView.ItemType itemType, Syncfusion.TreeView.Engine.TreeViewNode itemData) [0x0000b] in <e90a1f42ec644755befe74ada39edca4>:0
at Syncfusion.iOS.TreeView.LinearLayout.EnsureItems (Syncfusion.GridCommon.ScrollAxis.VisibleLinesCollection visibleLines) [0x00253] in <e90a1f42ec644755befe74ada39edca4>:0
at Syncfusion.iOS.TreeView.TreeNodesContainerBase.EnsureItems () [0x0001b] in <e90a1f42ec644755befe74ada39edca4>:0
at Syncfusion.iOS.TreeView.TreeNodeContainer.OnMeasureTreeNodeContainer (System.Double width, System.Double height) [0x000ad] in <e90a1f42ec644755befe74ada39edca4>:0
at Syncfusion.iOS.TreeView.TreeNodeContainer.LayoutSubviews () [0x0002d] in <e90a1f42ec644755befe74ada39edca4>:0
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.0.0.0/src/Xamarin.iOS/UIKit/UIApplication.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.0.0.0/src/Xamarin.iOS/UIKit/UIApplication.cs:65
at TreeViewXamarin.iOS.Application.Main (System.String[] args) [0x00001] in D:\.Net\_syncfusion\freshmvvm-treeview-xamarin-master\TreeViewXamarin\TreeViewXamarin\TreeViewXamarin.iOS\Main.cs:17
Kind regards
Phil