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

RadAsyncUpload client side validation

3 Answers 442 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Bassem
Top achievements
Rank 1
Bassem asked on 24 Jul 2012, 06:36 AM
hello.. i am using RadAsyncUpload to upload my client files i want 2 check if the current uploaded file size is larger then the maximum allowed file size i want 2 display my validation label without making that file appear in the progress area like appearing in the second image

3 Answers, 1 is accepted

Sort by
0
James Campbell
Top achievements
Rank 1
answered on 24 Jul 2012, 04:52 PM
You could remove the file from the control using the client side events. Take a look through here and you will find a couple of ways to do this on failed validation:

The Client Object
http://www.telerik.com/help/aspnet-ajax/asyncupload-client-object.html

OnClientValidationFailed Event
http://www.telerik.com/help/aspnet-ajax/asyncupload-onclientvalidationfailed.html

Client Side Basics
http://www.telerik.com/help/aspnet-ajax/asyncupload-client-side-basics.html

Any questions please let me know.

Thank you,
James Campbell
MCP, MCSA, MCSE, Security +
Telerik MVP

If this helped anwer you question, please mark this post as answered. Thank you.
0
Bassem
Top achievements
Rank 1
answered on 25 Jul 2012, 01:17 PM
could you please give me an example of how can i achieve this i looked at those pages you give me but i couldn't come with a solution
0
Plamen
Telerik team
answered on 28 Nov 2012, 04:15 PM
Hello,

 
I am attaching a sample page where is implemented the recommended way to hide the uploading list of files in RadAsyncUpload. 

Hope this will 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
Bassem
Top achievements
Rank 1
Answers by
James Campbell
Top achievements
Rank 1
Bassem
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or