Aug 09, 2010, 9:21 AM
[CLOSED] Upload control and Deferred Render
Morning,
We are using Deferred Render to reference Controls between tabs. However, turning on deferred render has stopped the upload control on the second tab from working.
Please see following code.
We are using Deferred Render to reference Controls between tabs. However, turning on deferred render has stopped the upload control on the second tab from working.
Please see following code.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Downloads.aspx.cs" Inherits="Downloads" %>
<%@ Register TagPrefix="ext" Namespace="Ext.Net" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:Viewport ID="Viewport1" runat="server">
<Items>
<ext:BorderLayout ID="BorderLayout1" runat="server" StyleSpec="background-color: white;">
<Center>
<ext:TabPanel runat="server" ID="tbpMain" DeferredRender=false>
<Items>
<ext:FormPanel ID="frmDetails" runat="server" Title="Labour Costs" Icon="Money">
<Items>
<ext:FileUploadField runat="server" ID="filUpload" FieldLabel="Select file" Icon="Attach" >
</ext:FileUploadField>
</Items>
</ext:FormPanel>
<ext:FormPanel ID="frmBudget" Title="Other Costs " runat="server" Icon="Money">
<Items>
<ext:FileUploadField runat="server" ID="filUpload2" FieldLabel="Select file" Icon="Attach">
</ext:FileUploadField>
</Items>
</ext:FormPanel>
</Items>
<BottomBar>
<ext:StatusBar ID="stbMain" runat="server">
<Items>
<ext:Panel runat="server" ID="pnlModification" SkinID="ModificationDetails">
</ext:Panel>
</Items>
<Plugins>
<ext:ValidationStatus ID="ValidationStatus1" runat="server">
<CustomConfig>
<ext:ConfigItem Name="FormPanelIDs" Value="[frmDetails]" Mode="Value">
</ext:ConfigItem>
</CustomConfig>
</ext:ValidationStatus>
</Plugins>
</ext:StatusBar>
</BottomBar>
</ext:TabPanel>
</Center>
</ext:BorderLayout>
</Items>
</ext:Viewport>
<div>
</div>
</form>
</body>
</html>
Last edited by geoffrey.mcgill; Aug 10, 2010 at 8:09 PM.
Reason: [