Show select button when validation fail for MaxFileInputsCount="1"

4 posts, 0 answers
  1. Benjamin
    Benjamin avatar
    51 posts
    Member since:
    Jul 2016

    Posted 11 Jul Link to this post

    hi.

    i would like to check how do i enable the "Select" button when the validation fails?

     

    my current mock up is as such

    1.<telerik:RadAsyncUpload RenderMode="Lightweight" MultipleFileSelection="Disabled" MaxFileSize="500000" OnClientValidationFailed="validationFailed" AllowedFileExtensions="jpg,jpeg,png" MaxFileInputsCount="1" runat="server" ID="fileCourseImage" PostbackTriggers="btnSubmit">
    2.</telerik:RadAsyncUpload>

  2. Benjamin
    Benjamin avatar
    51 posts
    Member since:
    Jul 2016

    Posted 12 Jul in reply to Benjamin Link to this post

    and would like to also check how do i call a JS function when there is change to this control. i.e, user delete the file or user upload file
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Benjamin
    Benjamin avatar
    51 posts
    Member since:
    Jul 2016

    Posted 12 Jul in reply to Benjamin Link to this post

    to add on i have tried using 

    OnClientFilesUploaded="myJSfunction()"

    OnClientFileUploadRemoved="myJSfunction()"

    but upon page loaded, be it inital page load or after returning from a postback, either of the 2 event keep being triggered. once i remove them even is working normally

  5. Ivan Danchev
    Admin
    Ivan Danchev avatar
    835 posts

    Posted 14 Jul Link to this post

    Hello Benjamin,

    The behavior with the Select button hiding when the selected file fails the validation is a bug. We logged it and will do our best to fix it as soon as possible. We are sorry for any inconvenience it might have caused you.

    The bug's status can be tracked on our Feedback Portal.

    As a token of gratitude for reporting this issue I updated your Telerik points.

    Regards,
    Ivan Danchev
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top