Jun 09, 2020, 7:54 AM
Direct Event with IsUpload doesnt fire Success
I am using this button to UPLOAD an excel file, modify it and then return it to the user via MVC FileResult (byte[]) in one shot. However, Success is never called. If i change it to After, it works.
thanks!
/Z
thanks!
/Z
<ext:Button ID="XlsSaveButton" runat="server" Text="Run Report" Disabled="true">
<DirectEvents>
<Click
Url="/ta/XXXX/RunXXX"
Timeout="60000"
IsUpload="true"
CleanRequest="true"
Method="POST"
Before="Ext.net.Mask.show();"
Success="alert('Your file will be downloaded shortly');"
Failure="Ext.Msg.show({
title: 'Error',
msg: result.message || result.errorMessage,
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.ERROR
});">
<EventMask MinDelay="250" />
</Click>
</DirectEvents>
</ext:Button>