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

Edit uploaded files after save

1 Answer 37 Views
Upload
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nijanand
Top achievements
Rank 1
Nijanand asked on 12 Jan 2012, 08:11 PM
I have a FileUpload control on my "add" view:
<%= Html.Telerik().Upload()
        .Name("attachments")
        .Multiple(Model.IsMultiple)
        .ShowFileList(Model.ShowList)
        .Async(async => async
                .Save("UploadAttachments", 'CommonController')
                .Remove("RemoveAttachments", "CommonController")
                .AutoUpload(Model.FileUploadDocument.ShowList)
              )
        .ClientEvents(c => c.OnSuccess("onFileUploadSuccessCallback"))
%>


Currently i save uploaded files into a temp location and on click of the "Save" button, commit them to the database.

After saving the files, the page is now automatically in "EDIT" mode. so, the user should be able to delete/add or replace already uploaded files. Is there a way to do this? Can i bind the upload control to my database list?

Any alternative ideas?

Thanks,
Nij

1 Answer, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 13 Jan 2012, 09:55 AM
Hello,

I'm including the response to your support ticket here for community reference:

We recommend building such UI using a Grid as it is more suitable for the task. This code library demonstrates how this can be done:
http://www.telerik.com/community/code-library/aspnet-mvc/upload/upload-in-grid.aspx 

I hope this helps. 

Greetings,
Tsvetomir Tsonev
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Upload
Asked by
Nijanand
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or