how to hide uploaded files grid in ajax uploader

Last post 07-23-2013, 1:06 PM by Kenneth. 6 replies.
Sort Posts: Previous Next
  •  02-07-2013, 3:14 PM 76820

    how to hide uploaded files grid in ajax uploader

    Hi,

     

    We are uploading files direclty to database upon selecting the files from file dialog window. while uploading the files into database a grid is displaying with the selected files and remove option. Is there any way to hide the grid?

    we are using UploadAttachments control( <CuteWebUI:UploadAttachments runat="server" ID="Uploader1"> ..)

  •  02-21-2013, 4:43 PM 76903 in reply to 76820

    Re: how to hide uploaded files grid in ajax uploader

    In aspx page,

    <CuteWebUI:UploadAttachments InsertText="Upload Multiple files Now" runat="server" ID="Attachments1" OnPreRender="Attachments1_PreRender">
                 </CuteWebUI:UploadAttachments>

     

    In aspx.cs file,

     protected void Attachments1_PreRender(object sender, EventArgs e)
         {
             Attachments1.GetItemsTable().Visible = false;
            //Here you can bind the attachments with your grid
     
         } 

  •  02-22-2013, 12:09 PM 76907 in reply to 76903

    Re: how to hide uploaded files grid in ajax uploader

    Hi MayurNarsale,

     

    It is the attachment table, if you do not need the attachment table, please use control "CuteWebUI:Uploade", it has the same functions as the "CuteWebUI:UploadAttachments", but will not build the attachment table.

     

     <CuteWebUI:Uploader ID="uploader1" runat="server" MultipleFilesUpload="true">
            </CuteWebUI:Uploader>
     

    Regards,

     

    Ken 

  •  07-22-2013, 7:59 AM 77748 in reply to 76907

    Re: how to hide uploaded files grid in ajax uploader

    For some reason, changing it to <CuteWebUI:Uploader >

    does not make any difference for me - it still shows the table of files?

     

    What could I be doing wrong?

     

    Pat. 

  •  07-22-2013, 12:56 PM 77749 in reply to 77748

    Re: how to hide uploaded files grid in ajax uploader

    Hi pjs75,

     

    Can you show me the full code what you are testing on the page? Is your site online? If so, can you post your uploader page url? So we can check it for you.

     

    Regards,

     

    Ken 

  •  07-23-2013, 3:40 AM 77754 in reply to 77749

    Re: how to hide uploaded files grid in ajax uploader

    Hi Kenneth,

    No its on my local PC. I can show off my code, though it yurns out this is what I wanted:

     

    <script type="text/javascript">
        function CuteWebUI_AjaxUploader_OnQueueUI(list) {
            return false;
        }
    </script>

     

    I wanted to hide the queue list. Maybe I used wrong terminology.

     

    Pat. 

     

  •  07-23-2013, 1:06 PM 77758 in reply to 77754

    Re: how to hide uploaded files grid in ajax uploader

    Hi pjs75,

     

    Please try the code below. uploader1 is the uploader control id.

     

    1. <script>  
    2.     var uploader = document.getElementById("<%= uploader1.ClientID %>");  
    3.     uploader.handlequeueui = myqueueuihandler;  
    4.     function myqueueuihandler(list) {  
    5.         return false//hide the queue table;  
    6.     }  
    7. </script>  
     

    Regards,

     

    Ken 

View as RSS news feed in XML