Bind AsyncUpload on Load

2 posts, 0 answers
  1. Alexandre
    Alexandre avatar
    1 posts
    Member since:
    Dec 2010

    Posted 29 Dec 2010 Link to this post

    Hello everybody,

    First, I want to apologize for my poor english.
    I'm trying to fill a asyncupload when the page loads.
    The page in question is made to modify a Business Object and I want when the page load that the asyncupload is filled if a file has already been uploaded for this BO.
    If it's not clear tell me in order to explain this better.
  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 03 Jan 2011 Link to this post

    Hello Alexandre,

    This is not supported out of  the box by RadAsyncUpload. In general, its purpose is to upload files, not to show which files are already uploaded. You may use ASP.NET repeater for that purpose and design its template in a proper way. Here is some sample code:


    if (UploadedFilesCollection.Length > 0)
                {
                    repeaterResults.DataSource = UploadedFilesCollection;
                    repeaterResults.DataBind();
                }

    <asp:Repeater ID="repeaterResults" runat="server" Visible="False">
                                        <HeaderTemplate>
                                            <div class="title">Uploaded files in the target folder:</div>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <%# Container.DataItem %>
     
                                            <br />
                                        </ItemTemplate>
                                    </asp:Repeater>


    Kind regards,
    Genady Sergeev
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top