Multiple File Upload - Not showing "Required" elements

Last post 11-25-2009, 9:20 PM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  11-25-2009, 2:35 PM 57428

    Multiple File Upload - Not showing "Required" elements

    I'm dying to find a way to not show the file listing panel, cancel, and/or cancel all buttons.
     
    It makes it impossible to show this button in a fixed location on a page and not have the UI look terrible while uploading multiple files.
     
    I've yet to buy this control and, while this control is one of the best out there, I can't find a valid reason to force you to show any of the compontents of the UI.
  •  11-25-2009, 9:20 PM 57431 in reply to 57428

    Re: Multiple File Upload - Not showing "Required" elements

    Hi MrHumpty,
     
    Try this way
    1. <%@ Page Language="C#" Title="Customize the queue UI" %>   
    2.   
    3. <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>   
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">   
    5.   
    6. <script runat="server">   
    7.   
    8.     protected void UploadAttachments1_PreRender(object sender, EventArgs e)   
    9.     {   
    10.         UploadAttachments1.GetItemsTable().Visible = false;   
    11.     }   
    12. </script>   
    13.   
    14. <html xmlns="http://www.w3.org/1999/xhtml">   
    15. <head id="Head1" runat="server">   
    16. </head>   
    17. <body>   
    18.     <form id="Form1" runat="server">   
    19.         <CuteWebUI:UploadAttachments runat="server" ID="UploadAttachments1" InsertButtonID="BrowseButton"  
    20.             OnPreRender="UploadAttachments1_PreRender">   
    21.         </CuteWebUI:UploadAttachments>   
    22.     </form>   
    23. </body>   
    24.   
    25. <script type="text/javascript">   
    26. var uploader=document.getElementById("<%=UploadAttachments1.ClientID %>");   
    27. uploader.handlequeueui=function myqueueuihandler(list)   
    28. {   
    29.         return false;    
    30. }   
    31.   function CuteWebUI_AjaxUploader_OnStart()   
    32.   {   
    33.  var hidden=this;   
    34.   
    35.  hidden.internalobject.cancelBtn.style.visibility="hidden";   
    36. }   
    37.   
    38.         
    39. </script>   
    40.   
    41. </html>  
    Regards,
     
    ken
View as RSS news feed in XML