Can you please help me with Reloading or refreshing SfDiagram in Xamarin Forms? Another problem I am facing is assigning data source after async method(Web service). As per this thread
https://www.syncfusion.com/forums/137476/begin-node-render-event-not-work-in-async-method if I used wait method then it is freezing my UI that I can't do and after that also it is not working. So I have two questions which are listed below.
1. How to refresh/reload SfDiagram for Organization chart?
2. How to use a web service for Data source of SfDiagram?
For your reference, I am getting below error with async method.
Error: BindingExpression path error: 'ToolTip_Pivot' property not found on 'Syncfusion.UI.Xaml.Diagram.Controls.DiagramThumb'. BindingExpression: Path='ToolTip_Pivot' DataItem='Syncfusion.UI.Xaml.Diagram.Controls.DiagramThumb'; target element is 'Windows.UI.Xaml.Controls.Border' (Name='thumb'); target property is 'ToolTip' (type 'Object')
Stack Trace: at Windows.UI.Xaml.DependencyObject.GetValue(DependencyProperty dp)
at Syncfusion.SfDiagram.XForms.UWP.DiagramDependencyService.Clear(Object nativeObject)
at Syncfusion.SfDiagram.XForms.SfDiagram.Clear()
at Syncfusion.SfDiagram.XForms.DataSourceSettings.UpdateLayoutDataSource()
at Syncfusion.SfDiagram.XForms.SfDiagram.OnDataSourceSettingsChanged(BindableObject bindable, Object oldValue, Object newValue)
at Xamarin.Forms.BindableObject.SetValueActual(BindableProperty property, BindablePropertyContext context, Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent)
at Xamarin.Forms.BindableObject.SetValueCore(BindableProperty property, Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes)
at Xamarin.Forms.BindableObject.SetValue(BindableProperty property, Object value, Boolean fromStyle, Boolean checkAccess)
at Syncfusion.SfDiagram.XForms.SfDiagram.set_DataSourceSettings(DataSourceSettings value)
Message:The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD))
Source:Windows
If you can help me with the above issues then it will be great for me.