Disable/Hide "Remove" icon after file being uploaded - RadAsyncUpload

0 Answers 121 Views
Ajax AsyncUpload UI for ASP.NET AJAX in ASP.NET MVC
Top achievements
Rank 2
Neil asked on 20 Apr 2023, 08:55 PM | edited on 20 Apr 2023, 08:56 PM

Hi All,

I am trying to provide read-only access to certain users. This user should not be able to remove the uploaded file. 

How do I hide/disable the remove button from server side? 



Telerik team
commented on 25 Apr 2023, 12:13 PM

Hi Neil,

The scenario is discussed in the following forum thread: RadAsyncUpload: How can I hide buttons?

You can hide the remove button either:

  • by CSS

        .ruRemove { display: none; }
  • or via JavaScript

        function OnClientFilesUploaded(sender, args) {
    <telerik:RadAsyncUpload ID="RadAsyncUpload1" OnClientFilesUploaded="OnClientFilesUploaded" runat="server"></telerik:RadAsyncUpload>

If you need a server solution, you can register the JavaScript via the RegisterStartupScript server method of the ScriptManager - Execute Custom Javascript Code after an AJAX Update.

No answers yet. Maybe you can help?

Ajax AsyncUpload UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Top achievements
Rank 2
Share this question