Hide table with class = AjaxUploaderQueueTable

Last post 09-26-2011, 7:57 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  09-22-2011, 10:27 AM 70151

    Hide table with class = AjaxUploaderQueueTable

    Hi!
     
    I'm using the control UploadAttachments, and I'm using the event attachment1_PreRender for hide the file list when the upload finish. But when the file is uploading I want hide the table (near the InsertButton) with class = 'AjaxUploaderQueueTable', I tried using events, javascript, but I don't get sucess. Suggestions?
     
    Saludos,
     
    SergioTarrillo 
  •  09-26-2011, 7:57 AM 70198 in reply to 70151

    Re: Hide table with class = AjaxUploaderQueueTable

    Hi starrillo,
     
    Please try the example below
     
    <%@ Page Language="C#" Title="Customize the queue UI" %>

    <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

    <script runat="server">

        protected void UploadAttachments1_PreRender(object sender, EventArgs e)
        {
            UploadAttachments1.GetItemsTable().Visible = false;
        }
    </script>

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
    </head>
    <body>
        <form id="Form1" runat="server">
            <div>
                <CuteWebUI:UploadAttachments runat="server" ID="UploadAttachments1" OnPreRender="UploadAttachments1_PreRender">
                </CuteWebUI:UploadAttachments>
            </div>
        </form>
    </body>

    <script>
    var uploader=document.getElementById("<%=UploadAttachments1.ClientID %>");
    uploader.handlequeueui=myqueueuihandler;
    function myqueueuihandler(list)
    {
        return false; //hide the default;
    }

    </script>
    </html>
     
    Regards,
     
    Ken
View as RSS news feed in XML