keep list of files

6 posts, 0 answers
  1. Mathieu
    Mathieu avatar
    20 posts
    Member since:
    Jun 2012

    Posted 14 Nov 2012 Link to this post

    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 
  2. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 19 Nov 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mathieu
    Mathieu avatar
    20 posts
    Member since:
    Jun 2012

    Posted 19 Nov 2012 Link to this post

    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
  5. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 22 Nov 2012 Link to this post

    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.
  6. Mathieu
    Mathieu avatar
    20 posts
    Member since:
    Jun 2012

    Posted 22 Nov 2012 Link to this post

    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
  7. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 23 Nov 2012 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017