This is a migrated thread and some comments may be shown as answers.

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

3 Answers 47 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 11 Jul 2016, 10:00 AM

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>

3 Answers, 1 is accepted

Sort by
0
Benjamin
Top achievements
Rank 1
answered on 12 Jul 2016, 09:57 AM
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
0
Benjamin
Top achievements
Rank 1
answered on 12 Jul 2016, 09:59 AM

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

0
Ivan Danchev
Telerik team
answered on 14 Jul 2016, 08:24 AM
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.
Tags
AsyncUpload
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Benjamin
Top achievements
Rank 1
Ivan Danchev
Telerik team
Share this question
or