Jul 16, 2013, 3:26 AM
[CLOSED] Problem with Button Only FileUploadField
Dear Support,
I have encountered problem when using the FileUploadField, the upload window would not prompt when the leftmost part of the button is pressed (e.g. the icon). However, the button works properly when the Button Text is short (e.g. Upload/Browse).
I have encountered problem when using the FileUploadField, the upload window would not prompt when the leftmost part of the button is pressed (e.g. the icon). However, the button works properly when the Button Text is short (e.g. Upload/Browse).
<ext:FileUploadField ID="fileADIExcel" runat="server" ButtonOnly="true" Icon="Attach" LabelWidth="120" ButtonText="Press to select file to upload" ButtonOffset="20"
Hidden="false" HideLabel="true">
<DirectEvents>
<FileSelected OnEvent="UploadClick" Before="if(!checkExtension(value)) { Ext.Msg.alert('Warning','You had submitted a <b>Wrong</b> file format!<br><br>Please submit a <b>.xls</b> file!'); return false; };"
Failure="Ext.Msg.show({
title : 'Error',
msg : 'Upload Failure!',
minWidth: 200,
modal : true,
icon : Ext.Msg.ERROR,
buttons : Ext.Msg.OK
});">
<ExtraParams>
<ext:Parameter Name="Values" Value="Ext.encode(#{HAStaffListGrid}.getRowsValues({selectedOnly : true}))"
Mode="Raw" />
</ExtraParams>
<EventMask ShowMask="true" />
</FileSelected>
</DirectEvents>
</ext:FileUploadField>
Please also find the printscreen when the leftmost part of the button is pressed:
Last edited by Baidaly; Jul 20, 2013 at 1:20 AM.
Reason: [CLOSED]