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

Remove Add button

1 Answer 49 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 30 Apr 2012, 01:44 PM
How to remove Add button in radupload when  MaxFileInputsCount is reached?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 30 Apr 2012, 01:56 PM
Hi Tina,

Try the following code to remove Add button after reaching MaxFileInputsCount.

ASPX:
<telerik:RadUpload ID="RadUpload1" runat="server" MaxFileInputsCount="3" OnClientAdded="OnClientAdded">
</telerik:RadUpload>

JS:
<script type="text/javascript">
 function OnClientAdded(sender, args)
    {
        if (sender.getFileInputs().length == sender.get_maxFileCount())
        {
            $telerik.$(".ruAdd").remove();
        }
    }
</script>

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