Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > AsyncUpload > Add dynamically files in RadAsyncUpload

Not answered Add dynamically files in RadAsyncUpload

Feed from this thread
  • kd avatar

    Posted on Jan 17, 2012 (permalink)

    Hi all,
    i have stored files in BLOBs at the insert time it works fine but when i am going to edit a records how can i add those files data in RadAsync FileUpload and stored files shown in file uploader

    Reply

  • Dimitar Terziev Dimitar Terziev admin's avatar

    Posted on Jan 20, 2012 (permalink)

    Hello,

    In order to achieve the desired functionality you could combine the approaches from the following two demos here and here. You should develop a custom handler and then persist the uploaded file using the approach from the second demo.

    Regards,
    Dimitar Terziev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now

    Reply

  • kd avatar

    Posted on Jan 21, 2012 (permalink)

    thanks for rpl,
    actually my problem is that i want to load all files in RadAsyncUpload from db,
    for expamle when we are browsing files through radasyncupload, The uploaded files shown above the radasyncupload where user can b able to remove files by clicking on close icon. my problem is this i am getting all files list from blobs but how can i shown files above the radasyncupload

    Reply

  • Anton avatar

    Posted on May 18, 2012 (permalink)

    Hi Kd


    I dont know if you found a solution for this. I was also struggling with this.
    My case was I have an Integrator the allows the user to forward a message with attached items.

    I made use of a repeater and replicated the format of how the items look like when added to the Upload. Still needs some tweeking but its working

    <asp:Repeater ID="rpAttachements" runat="server">
                           <ItemTemplate>
                               <div>
                                   <img src="../../Images/attachmentBubble.jpg" /><asp:Label ID="lblFilename" runat="server"
                                       Text='<%# Eval("DOC_FILENAME")%>'></asp:Label>
                                   <telerik:RadButton runat="server" OnClick="img_click" ID="hpLink" Value='<%# Eval("INTG_ATTACHMENTID")%>'
                                       UseSubmitBehavior="False" Width="44px" Height="12px">
                                       <Image ImageUrl="~/Images/RemoveImage.jpg" EnableImageButton="True" />
                                   </telerik:RadButton>
                               </div>
                           </ItemTemplate>
                       </asp:Repeater>


    Then it depends on how you want to use it .. But in the code behind for the click event of the Image , you can either Remove the item from the repeater or from the Database.
    In my case I just want it toi be removed from the Repeater.
    So when the message is sent i just get the remaining items from the repeater. Either select or just insert from the same table where the ids match up.

    To get the Value of the Item just use ((RadButton)sender).Value in the click event.

    I dont think this is a solution but in my case it was 'n work around that helped me until I have time to work on it again.

    Thanks ,
    Hope it Helps

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > AsyncUpload > Add dynamically files in RadAsyncUpload
Related resources for "Add dynamically files in RadAsyncUpload"

ASP.NET AsyncUpload Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]