Sep 10, 2012, 1:21 PM
[CLOSED] Problem when using FileUploadField with a gridPanel
Hi all,
I want to browse and upload a file using the FileUploadField.
To do this, I place a GridCommand, and on click, I open the dialogue and choose a file.
When calling any method in the code behind, and whatever it contains, I get an error on InternetExplorer: "Microsoft JScript runtime error: Access is denied."
I want to browse and upload a file using the FileUploadField.
To do this, I place a GridCommand, and on click, I open the dialogue and choose a file.
When calling any method in the code behind, and whatever it contains, I get an error on InternetExplorer: "Microsoft JScript runtime error: Access is denied."
<ext:ResourceManager runat="server" Namespace="myResource">
</ext:ResourceManager>
<ext:GridPanel ID="GridPanel1" runat="server" Title="Editable GridPanel" Width="600"
Height="350">
<Store>
<ext:Store ID="Store1" runat="server">
<Model>
<ext:Model ID="Model1" runat="server" IDProperty="getId">
<Fields>
<ext:ModelField Name="getId" Type="Int" />
<ext:ModelField Name="getFirstName" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:Column ID="Column1" runat="server" Text="ID" DataIndex="getId" Width="35" />
<ext:Column ID="Column2" runat="server" Text="NAME" DataIndex="getFirstName" Flex="1">
</ext:Column>
<ext:CommandColumn ID="CommandColumn1" runat="server">
<Commands>
<ext:GridCommand Icon="ApplicationAdd" CommandName="Browse">
</ext:GridCommand>
</Commands>
<Listeners>
<Command Handler="#{myFileUpload}.fileInputEl.dom.click();" />
</Listeners>
</ext:CommandColumn>
</Columns>
</ColumnModel>
<SelectionModel>
<ext:CellSelectionModel ID="CellSelectionModel1" runat="server" />
</SelectionModel>
</ext:GridPanel>
<ext:FileUploadField Hidden="true" ID="myFileUpload" runat="server">
<DirectEvents>
<Change OnEvent="myFunction" IsUpload="true" />
</DirectEvents>
</ext:FileUploadField>
myFunction is a function in the code behind.
Last edited by Daniil; Sep 14, 2012 at 1:46 PM.
Reason: [CLOSED]