How to refresh or reload SfDiagram?

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.
 

4 Replies

DS Devaraj Sekar Syncfusion Team February 26, 2020 03:47 AM UTC

Hi Mosin,

Thank you for contacting Syncfusion support.

The mentioned issue with "SfDiagram crashes on updating layout" works as expected our side Kindly provide us the detailed information about exact issue reproducing scenario, design layout used at your end which will be helpful for us to provide a prompt solution at earliest.

We are analyzing on the mentioned support web service for data source in SfDiagram layout and will update you further details on 27th February 2020.

Regards,
Devaraj S



MK Muthukrishnan Kandasamy Syncfusion Team February 28, 2020 03:38 AM UTC

Hi Mosin,

We are currently analyzing the mentioned requirement with the high priority and will update you further details on 28th February 2020.

Regards,
Devaraj S


MO Mosin February 28, 2020 05:34 AM UTC

Hi Devraj/Muthukrishan,

Thank you for your co-operation. Kindly update me on this ASAP.


DS Devaraj Sekar Syncfusion Team March 1, 2020 04:20 PM UTC

Hi Mosin,

Sorry for the inconvenience.

Yes, we do have a support for loading data to organizational chart in SfDiagram using web service, but we have some known issues while loading data source. The fix for this issue will be included in our 2020 vol 1 Service Pack 1 release.

Regards,
Devaraj S


Loader.
Up arrow icon