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

Upload from edit template in grid

2 Answers 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 14 Jul 2009, 09:51 AM
Hi,

Are there any examples of an upload control with progress bar working from a edit template in a radgrid?  I know that I have to disable AJAX to do this and have tried the two examples shown in the workarounds in the help.  The first workaround using a conditionalPostback function doesn't seem to trigger the upload but does fire the Update event.

The second workaround uses a realPostBack javascript function to do the post back.  That one works in as much as the file is uploaded but then once the postback occurs the Update event doesn't get fired.

As mentioned on the first line, a working example a custom template having both the upload and the progress bar as well as a custom update function on the server to process the file would be very useful.

I've found many posts on this but none seem to quite match my issue.

Regards,

Jon

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 14 Jul 2009, 10:34 AM
Hello Jon,

I was wondering, if you have checked out the following online demo which implements just the exact requirement you have. The example makes use of a GridBinaryImageColumn whihc displays a RadBinaryImage control in view mode and RadUpload in edit mode to upload an image. Also, ajax is disabled in order to perform a full page postback while uploading.
Using RadUpload in an Ajaxified Grid

Thanks
Princy
0
Jon
Top achievements
Rank 1
answered on 14 Jul 2009, 12:08 PM
Hi Princy,

Thanks for that - I had seen that example and it is indeed similar however there are a few differences such as mine needing the progress bar, custom tempate and custom update command.

I've just stripped my page down to the bare essentials and this time it seems to have worked - the only thing that I did was to change the regular expression to remove the insert button (this page only has updates).  I've put that single change back into the original page and it (touch wood) seems to be working.

I'll mark your post as the answer as it will certainly help others in a similar position.

Regards,

Jon



Tags
Grid
Asked by
Jon
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Jon
Top achievements
Rank 1
Share this question
or