Retain Invalid files after postback

4 posts, 0 answers
  1. Niyati
    Niyati avatar
    2 posts
    Member since:
    Sep 2014

    Posted 16 Sep 2014 Link to this post

    I have a scenario where after click on submit button, I need to retain all the files- (valid and invalid). So that user is aware of the invalid files. However, currently only valid files that are successfully uploaded are retained on postback of submit button click. Is there a way where I can retain all the invalid files also after postback??
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 18 Sep 2014 Link to this post

    Hello,

    The RadAsyncUpload  PostbackTriggers property that defines the controls that will post-back and eventually upload all currently listed files to the target folder. In other words if there are two buttons on the page which initiate a post-back and only one of them is defined in the RadAsyncUpload PostbackTriggers only this one will post-back the files and clear the file list.Clicking on the second button will initiate a post-back but will retain the files without moving them to the target folder.

    If you need any further assistance please do not hesitate to contact us.

    Regards,
    Boyan Dimitrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Niyati
    Niyati avatar
    2 posts
    Member since:
    Sep 2014

    Posted 19 Sep 2014 Link to this post

    Thanks, Boyan.
    I am aware of the use of Postback Triggers property.
    However, in my case, there is only one button that triggers the postback. On click of that, I am able to retain the valid files. But I also want to retain invalid files that have not passed the validation of size limit or do not match the list valid extensions. Can you please tell me a way in which I can also retain these invalid files along with the valid files? 

    Thanks,
    Niyati
  5. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 23 Sep 2014 Link to this post

    Hello Niyati,

    Indeed the only the valid files are persisted between post-backs. When a file is listed with a green icon on the left side this means that the file is already in the temp folder. The RadAsyncUpload is designed to retain only the valid files between post-backs since those files exist in the temp folder. Invalid files could not be retained between post-backs.

    Regards,
    Boyan Dimitrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top