BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi, I am having trouble getting the OnFileListRenderHandler event to work. I have reduced my code down to the following but the problem is that the event handler never gets called. Please can you help? I am using v20.4.0.44. Thanks, Mike.
Hi Mike,
This is the default behavior of our uploader component, the OnFileListRendering is applicable for the AsyncSetting cases alone. So, we suggest you use the AssyncSettings property to trigger the OnFileListRendering event.
Find the code example here:
<SfUploader ID="uploader"> <UploaderAsyncSettings SaveUrl=https://aspnetmvc.syncfusion.com/services/api/uploadbox/Save RemoveUrl=https://aspnetmvc.syncfusion.com/services/api/uploadbox/Remove></UploaderAsyncSettings> <UploaderEvents OnFileListRender="OnFileListRenderHandler"></UploaderEvents> </SfUploader>
@code { private void OnFileListRenderHandler(FileListRenderingEventArgs args) { Console.WriteLine("OnFileListRenderHandler"); // Here, you can customize your code. } }
|
Regards,
Sureshkumar P
Hi Sureshkumar,
Thanks - could I suggest that you update your documentation to specify which events are only applicable when using the AsyncSettings.
Kind regards,
Mike.
Mike, thanks for your valuable suggestion, we have logged “Need to update the documentation for the event support information on uploader” as a documentation correction request, and this support will be included in any one of our upcoming releases.