Unable to make async requests inside collectionChange event

Hello,

We need to send a request to the webserver inside collectionChange event before making the decision to change event.cancel value, how would that be possible?

3 Replies 1 reply marked as answer

GG Gowtham Gunashekar Syncfusion Team February 25, 2021 02:57 PM UTC

Hi Joilson, 
 
There is no possibility to add a blocking code(like server call) in the collection change event in diagram. We request you to share us more details about your requirement. We try to give the alternative solution. 
 
Regards, 
Gowtham 


Marked as answer

JR Joilson Rabelo replied to Gowtham Gunashekar February 25, 2021 04:46 PM UTC

Hi Joilson, 
 
There is no possibility to add a blocking code(like server call) in the collection change event in diagram. We request you to share us more details about your requirement. We try to give the alternative solution. 
 
Regards, 
Gowtham 


Hello, thanks for your answer, our business logic is similar to something like:

https://gist.github.com/jrabello/8e5809345f9322cdc6533112fd93da03


NG Naganathan Ganesh Babu Syncfusion Team February 26, 2021 01:01 PM UTC

Hi Joilson, 
 
As per our diagram implementation, setting diagram’s events as an asynchronous call is not possible.  
 
Regards, 
Naganathan K G 


Loader.
Up arrow icon