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

keep list of files

5 Answers 60 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
mathieu
Top achievements
Rank 1
mathieu asked on 14 Nov 2012, 05:24 PM
hi 

i would keep the list of files after a postback like do the postbacktrigger property but i need it for validation purpose and so the postback to validate is the same than for upload.

i mean i have a single button to save my form and upload the file in server code i validate my form if there is a problem. i need to show again the form with information about the validation if no problem i save everything.

if i use the postbacktriggers property i don't get the upload event and i absolutely need it.

so i'm looking for away to give or keep the list in client side.

hope it was clear enough :-)

thank you 

5 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 19 Nov 2012, 08:07 AM
Hi,

 
You can perform your validation of the RadAsyncUpload client object in onClientClicking of RadButton that will preform the postback and to cancel it if needed.

Hope this will be helpful.

Kind regards,
Plamen
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.
0
mathieu
Top achievements
Rank 1
answered on 19 Nov 2012, 03:56 PM
unfortunately i can't validate everything in client side. i would add something int the prerender to add the control that i need 
if i llok in the code the ligne is just span with css and the name of the file it shouldn't be difficult to add this at render time.
but for this i need to inherite from you control and in the prerender put something. 
the probleme is the something i don't know how to add html control at prerender time 
i don't know if i'm clear do you understand me ?.

thanks
0
Plamen
Telerik team
answered on 22 Nov 2012, 11:00 AM
Hello,

 
Unfortunately  the scenario is not quite clear so would you please elaborate a little bit how it show differ from the one on the demo linked in my previous post so we could be more helpful?

Greetings,
Plamen
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.
0
mathieu
Top achievements
Rank 1
answered on 22 Nov 2012, 04:59 PM
hi,

i'll try to explain my self better :-)
so i have a form with a few fields (textbox, combobox, and the asyncupload)
the whole form is in an usercontrol inside a radwindow.
i have a single button to save the form (if the user want cancel he just close the radwindow
when the user click on the save button i perfom some validation stuf and return or not on the page if there is problem or not.
so there is two scenario:
- validation succeed, i need to save the file and the whole form
- validation failed i need to show again the form (with error) and the list of file that was selected
and i'm not able to validate from js :-(

hope it's better 
thanks for your help
0
Plamen
Telerik team
answered on 23 Nov 2012, 09:24 AM
Hi Mathieu,

 
Thank you for elaborating the scenario. Currently RadAsyncUpload does not support other way of validation (additional from the one with javascript I suggested) so I can recommend you to review the different validation scenarios with RadUpload and use some of them if some of them is more adaptable for your case.
http://demos.telerik.com/aspnet-ajax/upload/examples/integratedvalidation/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/upload/examples/customvalidation/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/upload/examples/clientsidevalidation/defaultcs.aspx

Hope this will explain the issue and be helpful.

Greetings,
Plamen
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.
Tags
AsyncUpload
Asked by
mathieu
Top achievements
Rank 1
Answers by
Plamen
Telerik team
mathieu
Top achievements
Rank 1
Share this question
or