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

Thread is closed for posting
2 posts, 0 answers
  1. Gert Conradie
    Gert Conradie avatar
    4 posts
    Member since:
    Aug 2005

    Posted 05 Dec 2008 Link to this post

    On the demo:

    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.
  2. Veselin Vasilev
    Veselin Vasilev avatar
    2992 posts

    Posted 09 Dec 2008 Link to this post

    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.
Back to Top