UploadFile no trigger ValueChange when use in Pop-up
Hi,
Attachment: SfDialog_with_uploadfile_ca49bf56.zip
Today, i use UploadFile component in Pop-up, the event ValueChange not trigger when add file.
I tried call: await this.UploadFile.Upload() in Submit function to trigger, but await not working correct.
I have attached sample project.
Note: I don't know why, but yesterday i can upload file success in dialog.
Could you please help me this issues.
Regards,
Attachment: SfDialog_with_uploadfile_ca49bf56.zip
SIGN IN To post a reply.
5 Replies
1 reply marked as answer
JM
Jeyanth Muthu Pratheeban Sankara Subramanian
Syncfusion Team
August 13, 2020 03:49 PM UTC
Hi Sun,
Greetings from Syncfusion support.
We have checked your query and your attached project. Change event is triggered and the dialog appears if we upload a file to Uploader inside and outside dialog. Here we attached the video which we have ensured. Also we suggest you to try out by clearing the NuGet caches if any.
Nuget cache clear UG : https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache
Video Link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/Uploader_Change_Event-87184211
Greetings from Syncfusion support.
We have checked your query and your attached project. Change event is triggered and the dialog appears if we upload a file to Uploader inside and outside dialog. Here we attached the video which we have ensured. Also we suggest you to try out by clearing the NuGet caches if any.
Nuget cache clear UG : https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache
Video Link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/Uploader_Change_Event-87184211
If we misunderstood your query, kindly get back to us with some more elaboration, that will help us to investigate about this issue further.
Regards,
MS
Mr Sun
August 14, 2020 09:20 AM UTC
Hi Jeyanth,


Thanks you for double-check.
But, you can see video.
1. Non dialog: when selected file:
2. With dialog: when selected file:
So, i force update by call: await this.sfUpload(); Its working, BUT AWAIT NOT WORK, AND ALL CODE BELOW RUN BEFORE FILE UPLOAD
Please help me double-check this issue.
Regards,
JM
Jeyanth Muthu Pratheeban Sankara Subramanian
Syncfusion Team
August 17, 2020 11:56 AM UTC
Hi Sun,
Thanks for your update.
We would like to inform you that ValueChange event will not trigger, if we render Uploader inside EditForm and this is an intended behavior of it. In order to trigger change event for this case, Upload() method has to be called manually. And we have already considered this as bug and the fix for this issue will be included in the August 19th patch release. Please find the feedback link below.
Feedback Link: https://www.syncfusion.com/feedback/16593
We also would like to inform you that await will not wait for the corresponding method call to complete. Please refer to the below answer provided in the Stackoverflow community for further reference.
Feedback Link: https://www.syncfusion.com/feedback/16593
We also would like to inform you that await will not wait for the corresponding method call to complete. Please refer to the below answer provided in the Stackoverflow community for further reference.
Stackoverflow Link : https://stackoverflow.com/a/15151444/9133493
Regards,
Jeyanth.
Marked as answer
MS
Mr Sun
September 1, 2020 07:16 AM UTC
It worked perfectly in ver 18.2.0.54
Thanks you for update.
JM
Jeyanth Muthu Pratheeban Sankara Subramanian
Syncfusion Team
September 2, 2020 06:22 AM UTC
Hi Sun,
We are glad to know that your issue has been resolved. Please let us know if you need any further assist on this.
Regards,
We are glad to know that your issue has been resolved. Please let us know if you need any further assist on this.
Regards,
Jeyanth.
SIGN IN To post a reply.