How to disable the creation of queue table and the default progress bar?

Last post 10-21-2010, 9:44 PM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  10-20-2010, 8:17 AM 64529

    How to disable the creation of queue table and the default progress bar?

    Hi!
     
     i am creating my custom queue list of files and a separate bar for each file , i made the default progress bar and the queue table hidden through javascript, but in the background they are working, its causing a performance issue. please1 tell me how can i disable the creation of queue table and the default progress bar...
     
    thanks! 
  •  10-20-2010, 9:00 AM 64532 in reply to 64529

    Re: How to disable the creation of queue table and the default progress bar?

    Dear deepakkumarjoshi,
     
    Please refer to the following code:

    <%@ Page Language="C#" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <script runat="server">  
        void Uploader_FileUploaded(object sender, UploaderEventArgs args)
        { 
            //Copys the uploaded file to a new location.
            //args.CopyTo("c:\\temp\\"+args.FileName);
            //You can also open the uploaded file's data stream.
            //System.IO.Stream data = args.OpenStream();
        }
    </script>

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Selecting multiple files for upload</title>
      //this will hide the queue table
    <script type='text/javascript'>
        function CuteWebUI_AjaxUploader_OnQueueUI(list) {
            return false;
        }
    </script>
    </head>
    <body>
        <form id="form1" runat="server">
            <div class="content">          
                    Select multiple files in the file browser dialog then upload them at once</p>
                <CuteWebUI:UploadAttachments runat="server" ID="Uploader1" InsertText="Upload Multiple Files (Max 10M)"
                    MultipleFilesUpload="true" OnFileUploaded="Uploader_FileUploaded" ShowProgressBar="False" NumFilesShowQueueUI="9999">
                    <ValidateOption MaxSizeKB="1024330" />
                </CuteWebUI:UploadAttachments>
            </div>
        </form>
    </body>
    </html>

    Thank you for asking
  •  10-21-2010, 1:35 AM 64549 in reply to 64532

    Re: How to disable the creation of queue table and the default progress bar?

    Hi!
     
    thanks! for the reply but , for me CuteWebUI_AjaxUploader_OnQueueUI is not firing.
     
  •  10-21-2010, 9:44 PM 64590 in reply to 64549

    Re: How to disable the creation of queue table and the default progress bar?

    Hi deepakkumarjoshi,
     
    Try this way
     
        protected override void OnLoad(EventArgs e)
        {
            //UploadAttachments1 is the id of uploader
            UploadAttachments1.GetItemsTable().Visible = false;
            base.OnLoad(e);
        } 
     
    Regards,
     
    ken 
View as RSS news feed in XML