Set properties of que list when uploading manually

Last post 03-11-2009, 11:04 AM by b-man. 9 replies.
Sort Posts: Previous Next
  •  03-05-2009, 11:50 AM 49507

    Set properties of que list when uploading manually

    I have a page with a black background in css in the body class I have the color set to white. When I select the files to be uploaded they list out in a que or list type box with a white background and it inherits the white color for the text. How can I adjust the properties of the que so I can set the text to black or the background to black?
     
     
     
    Thanks,
    b-man
  •  03-05-2009, 11:56 AM 49508 in reply to 49507

    Re: Set properties of que list when uploading manually

    b-man
     
    Does this thread help you ?
     
     
    Regards,
    Terry
  •  03-05-2009, 2:13 PM 49522 in reply to 49508

    Re: Set properties of que list when uploading manually

    It is telling me
     
    Parser Error Message: Type 'CuteWebUI.Uploader' does not have a public property named 'ItemCellStyle'.
     
    I am going to try and get a newer version of the dll and see if that will make a difference. Are these properties relatively new?
     
    Thanks,
    b-man
  •  03-05-2009, 3:10 PM 49530 in reply to 49522

    Re: Set properties of que list when uploading manually

    I had to change
    <CuteWebUI:Uploader
    to what is the difference between the two?
    <CuteWebUI:UploadAttachments
    what is the difference between the two?
     
    Thanks,
    b-man
  •  03-05-2009, 9:22 PM 49536 in reply to 49530

    Re: Set properties of que list when uploading manually

    Hi,
     
    That property is for Attachments table , it's not same as the Queue table.
     
    Queue table is generated by javascript , and it have no server style property to support it.
     
    So you need use CSS mentioned in that thread http://cutesoft.net/forums/thread/49017.aspx
     
    Regards,
    Terry
     
  •  03-10-2009, 4:36 PM 49710 in reply to 49536

    Re: Set properties of que list when uploading manually

    Ok - thanks - I have changed it back to CuteWebUI:Uploader and was able to change the text color through the
    .AjaxUploaderQueueTableRow {color:black;}
     
    Is it possible to change the position of the CancelAll Button for the Queue Table? I need the CancelAll button to be to the right of the queue table or the right of the submit button.
     
    Thanks,
    b-man
  •  03-10-2009, 10:30 PM 49720 in reply to 49710

    Re: Set properties of que list when uploading manually

    b-man,
     
    You can't change the position of the buildin cancelall button.
     
    Here is an example to make another button :
     
     

     
     
    1. <%@ Page Language="C#" %>  
    2. <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>  
    3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    4. <html xmlns="http://www.w3.org/1999/xhtml">  
    5. <head runat="server">  
    6.     <title>Sample</title>  
    7.     <style>  
    8.     .AjaxUploaderCancelAllButton   
    9.     {   
    10.         display:none!important;   
    11.     }   
    12.     </style>  
    13.     <script type="text/javascript">  
    14.     function CuteWebUI_AjaxUploader_OnQueueUI(list)   
    15.     {   
    16.         var mycancelall=document.getElementById("mycancelall");   
    17.         if(list.length<2)   
    18.         {   
    19.             mycancelall.style.display="none";   
    20.             return;   
    21.         }   
    22.         mycancelall.style.display="";   
    23.     }   
    24.     function DoCancelAll()   
    25.     {   
    26.         var uploader=document.getElementById('<%=UploadAttachments1.ClientID %>');   
    27.         uploader.cancelall();   
    28.     }   
    29.     </script>  
    30. </head>  
    31. <body>  
    32.     <form id="form1" runat="server">  
    33.         <div>  
    34.             <CuteWebUI:UploadAttachments runat="server" ID="UploadAttachments1" />  
    35.             <hr />  
    36.             <asp:Button runat=server ID=BtnSubmit Text="MySubmit" />  
    37.             <button id="mycancelall" onclick="DoCancelAll();return false;" style="display:none">Cancel All Uploads</button>  
    38.         </div>  
    39.     </form>  
    40. </body>  
    41. </html>  
    Regards,
    Terry
  •  03-11-2009, 9:37 AM 49741 in reply to 49720

    Re: Set properties of que list when uploading manually

    Hey Terry - Thanks for the solution but I have some interesting behavior going on.
     
    You will see I have the NumFilesShowCancelAll set to 1 but when selecting 1 file the Cancel button does not show up.
     
    Also note I am using CuteWebUI:Uploader and not UploadAttachments.

    <CuteWebUI:Uploader runat="server" ID="Uploader1" InsertText="Add files (Max 100MB)" ManualStartUpload="true" OnFileUploaded="Uploader1_FileUploaded" MultipleFilesUpload="true" NumFilesShowCancelAll="1">

    Thanks,
    b-man
  •  03-11-2009, 10:33 AM 49743 in reply to 49741

    Re: Set properties of que list when uploading manually

    b-man
     
    You need also change this line for the custom cancel buttuon :
     
    if(list.length<2) ,
     
    Regads,
    Terry
  •  03-11-2009, 11:04 AM 49746 in reply to 49743

    Re: Set properties of que list when uploading manually

    Don't ask me how I over looked that one - thanks
View as RSS news feed in XML