Remove Add button

Thread is closed for posting
2 posts, 0 answers
  1. Tina
    Tina avatar
    130 posts
    Member since:
    Jul 2011

    Posted 30 Apr 2012 Link to this post

    How to remove Add button in radupload when  MaxFileInputsCount is reached?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 30 Apr 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top