All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
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?
Hi Neil,
The scenario is discussed in the following forum thread: RadAsyncUpload: How can I hide buttons?
You can hide the remove button either:
<style> .ruRemove { display: none; } </style>
<script> function OnClientFilesUploaded(sender, args) { $telerik.$(".ruRemove").hide(); } </script> <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.
Hi Neil,
The scenario is discussed in the following forum thread: RadAsyncUpload: How can I hide buttons?
You can hide the remove button either:
<style> .ruRemove { display: none; } </style>
<script> function OnClientFilesUploaded(sender, args) { $telerik.$(".ruRemove").hide(); } </script> <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.