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

[Solved] alert on clicking remove button

1 Answer 105 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
senthil
Top achievements
Rank 1
senthil asked on 06 May 2009, 06:50 AM
i need code for rad upload , on clicking remove button if none of the checkbox is selected it should alert "select any item to remove as msg"

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 May 2009, 05:31 AM
Hi Senthil,

I guess you want to show alert to user when clicking the "Delete" button if none of the checkbox is checked. If so try out the following client side code.

aspx:
 
<telerik:radupload id="RadUpload1" runat="server" OnClientDeletingSelected="OnClientDeletingSelected"
</telerik:radupload> 

javascript:
 
<script type="text/javascript"
function OnClientDeletingSelected(radUpload, eventArgs) 
  var inputs = eventArgs.get_fileInputFields(); 
   if(inputs.length == 0) 
   { 
        alert ("Select any item to remove"); 
   } 
</script> 

Thanks,
Shinu.
Tags
Upload (Obsolete)
Asked by
senthil
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or