RadAsyncUpload

6 posts, 0 answers
  1. Bassem
    Bassem avatar
    14 posts
    Member since:
    Jul 2012

    Posted 26 Jul 2012 Link to this post

    hello Telerik supporter i have a issue i've been a week working on it but i couldn't find a proper solution for it and i hope if you can help me with a proper solution for it i am using RadAsyncUpload to upload my client files and i am using the OnClientValidationFailed to display a message for the user but my problem is the invalid uploaded file is displayed in the <li>..</li> with the message how can prevent this from happening ? in other word how can i display only the message without letting the user see the unvalid file and let him click the remove button please show me some code if available and thank you 
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 27 Jul 2012 Link to this post

    Hi Baseem,

    Try the following CSS to not to show Upload failed files.Hope this helps.
    CSS:
    <style type="text/css">
    .RadUpload .ruUploadFailure, .RadUpload .ruUploadCancelled
     {
      display:none !important;
     }
    </style>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bassem
    Bassem avatar
    14 posts
    Member since:
    Jul 2012

    Posted 27 Jul 2012 Link to this post

    hey thank you for your reply um i know i can make it disappear by it's css class but in my code the MaxFileInputsCount is specified to 3 it means the user can only upload 3 files but when a file is not valid it should not decrement  to 2 it should be 3 in other word if the first uploaded file by the user is invalid the error message is displayed and the MaxFileInputsCount should still be 3 and if the second uploaded file by the user is invalid the MaxFileInputsCount should be equal to 2 and so on please if you understood my problem  help me to solve it and thank you
  5. Plamen
    Admin
    Plamen avatar
    2731 posts

    Posted 31 Jul 2012 Link to this post

    Hi Bassem,

     
    You can use the onClientValidationFailed event and remove the file by triggering the click event of the remove button as in the code below:

    function validationFailed(sender, eventArgs) {
    sender._updateCancelButton(eventArgs.get_row());
    $telerik.$(".ruRemove", eventArgs.get_row()).click();
    }

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

    Posted 27 Aug 2012 Link to this post

    Hi Plamen,

    i'm also working with AsyncUpload control and having issues regarding keyboard accessibility. when i'm tabbing through the control i am not able to move on to another control. i tried fixing the problem but i didn't have any success. I tested the control on the demo site but it works properly. comparing my control from the demo site, my control is generating something from silverlight. and it is the one the holds the tab focus. and another thing, when i am focused on "<input class="ruButton ruBrowse" type="button" tabindex="-1" value="Browse...">
    " nothing is happening when i press the enter button. Please help me with this one. Thank you.

    Regards,

    Dean
    <object id="ctl00_MainContent_uscUploadMetadatasilverlight010" class="ruObject" height="22px" type="application/x-silverlight-2" data="data:application/x-silverlight-2," style="width: 100%;">
  7. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 29 Aug 2012 Link to this post

    Hi Dean,

    In order to use the keyboard navigation you need to disable Silverlight and Flash upload modules. Set DisablePlugins property to true will stop the usage of the plugins and the control will start using the IFrame module. Keep in mind the if you want to open the dialog window you need to use the space key. For detailed information please review the following demo and its instructions.

    Regards,
    Peter Filipov
    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