This is a migrated thread and some comments may be shown as answers.

Bind AsyncUpload on Load

1 Answer 75 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Alexandre
Top achievements
Rank 1
Alexandre asked on 29 Dec 2010, 06:01 PM
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.

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 03 Jan 2011, 03:13 PM
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.
Tags
AsyncUpload
Asked by
Alexandre
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or