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

Don't show when RadProgressArea when RadUpload.OnValidatingFile fail the validation

1 Answer 104 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Gert Conradie
Top achievements
Rank 1
Gert Conradie asked on 05 Dec 2008, 03:38 PM
On the demo:
http://demos.telerik.com/aspnet-ajax/Upload/Examples/CustomValidation/DefaultCS.aspx?RadUrid=8b6e25d5-53e9-403a-befd-7e65c54a0bc2


The RadprogressArea is still shown for the full period of time ("for (int i = 0; i < total; i++)" etc) , even though the RadUpload.OnValidatingFile server side method already marked the file as invalid. 

Would it be possible to prevent the RadProgressArea from showing?

I did tried the client side alternative with RadProgressArea.OnClientProgressUpdating client side method - but get inconsistant javascript:
                                'get_progressData().RadUpload.RequestSize' is null
errors  - when do multiple uploads one after the other.

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 09 Dec 2008, 10:39 AM
Hi Gert Conradie,

The RadUpload object of the progress data has the following properties:
  • Bytes - the number of bytes already uploaded to the server (equal to the unformatted value of PrimaryValue)
  • CurrentFileName - the name of the current file (equal to CurrentOperationText)
  • FilesCount - the number of files already uploaded to the server (equal to SecondaryValue)
  • RequestLength - the total length of the current request in bytes (equal to the unformatted value of PrimaryTotal)
Let us know how it goes.

P.S. I have moved this thread to the appropriate forum (RadUpload for ASP.NET AJAX)

Kind regards,
Veselin Vasilev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Upload (Obsolete)
Asked by
Gert Conradie
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or