begin node render event not work in async method

hello . please when i get data for sfdiagram from web service i can not get it in tree. because begin node render not excute in asyn method

1 Reply

AP Arun Prasad Matheshwaran Syncfusion Team May 14, 2018 01:28 PM UTC

Hi Samialfarra, 

We tried to reproduce the mentioned scenario by using the async method for generating DataModel, the data for organization chart is generated properly. Please find below the sample, which we tried to reproduce the scenario. 
Sample Link: 
We guess that you need a solution for applying templates to nodes after the web service or after any async task. 
For that you can try to call the wait method of the async task. 
Code Snippet: 
datamodel.DataAsync().Wait(); 
Below Microsoft link explaining an await expression does not block the thread on which it is executing, 

For further details regarding any queries, please let us know or create a support incident under your Directrac account. 

Thanks, 
Arun 


Loader.
Up arrow icon