[CLOSED] Problem directevent in page with TabPanel and FileUploadField in Ext.net 4.3

  1. #1

    [CLOSED] Problem directevent in page with TabPanel and FileUploadField in Ext.net 4.3

    Hi,
    we are migrating from 4.2.0 to 4.3.
    See my example, if in the page I have a TabPanel and a FileUploadField the response of directevent is wrong and the page becomes white.
    In this case the response is : <textarea>{script:&quot;Ext.net.Notification.show( {\&quot;title\&quot;:\&quot;The Server Time is: \&quot;,\&quot;html\&quot;:\&quot;10:20:42\&quot;} );&quot;}</textarea>
    I can fix by setting the direcevent type to load.
    Please help me.
    Thank you

    Jimmy

    <%@ Page Language="C#" %>
    
    
    <%@ Import Namespace="System.Threading" %>
    <%@ Import Namespace="System.Collections.Generic" %>
    
    
    <script runat="server">
        protected void UpdateTimeStamp(object sender, DirectEventArgs e)
        {
            X.Msg.Notify("The Server Time is: ", DateTime.Now.ToLongTimeString()).Show();
        }
    
    
        protected void fufNewImage_afterSelect(object sender, DirectEventArgs e)
        {
    
    
        }
    </script>
    
    
    <!DOCTYPE html>
    
    
    <html>
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server">
            </ext:ResourceManager>
    
    
            <ext:TabPanel ID="tabPnl" IDMode="Static" TabPosition="Top" runat="server" Border="true">
                <Items>
                    <ext:Panel ID="pnl1" runat="server" Title="pnl 1"></ext:Panel>
                    <ext:Panel ID="pnl2" runat="server" Title="pnl 2"></ext:Panel>
                </Items>
            </ext:TabPanel>
    
    
            <ext:FileUploadField
                ID="fufNewImage"
                IDMode="Static"
                runat="server"
                Width="185"
                EmptyText=""
                FieldLabel=""
                ButtonText="">
                <DirectEvents>
                    <Change OnEvent="fufNewImage_afterSelect" IsUpload="true" />
                </DirectEvents>
            </ext:FileUploadField>
    
    
            <ext:Button ID="Button1" runat="server" Text="Click Me" OnDirectClick="UpdateTimeStamp" />
        </form>
    </body>
    </html>
    Last edited by fabricio.murta; Sep 01, 2017 at 10:09 PM.
  2. #2
    Hello @xeo4.it!

    For this issue, please follow this thread:

    - FileUploadField breaking Html forms on 4.3.

    Visit it and subscribe to it, we already fixed the issue on github and it will be available on Ext.NET 4.4.0.
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hi Fabricio,
    I used your override, and I will wait for 4.4.
    Thank you

    Jimmy
  4. #4
    Glad it helped, thanks for the feedback!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 1
    Last Post: Dec 19, 2014, 3:58 PM
  2. [CLOSED] FileUploadField DirectEvent blocking
    By zwf in forum 2.x Legacy Premium Help
    Replies: 12
    Last Post: Dec 14, 2012, 11:27 AM
  3. problem with closing a tab page in TabPAnel
    By ozayExt in forum 1.x Help
    Replies: 6
    Last Post: Nov 24, 2011, 3:27 PM
  4. Replies: 2
    Last Post: Feb 16, 2011, 9:10 AM
  5. TabPanel - loading page resize problem
    By mrozik in forum 1.x Help
    Replies: 5
    Last Post: Dec 04, 2009, 12:52 PM

Posting Permissions