radasyncupload window

2 posts, 0 answers
  1. ithihas
    ithihas avatar
    14 posts
    Member since:
    Jun 2012

    Posted 28 Jun 2012 Link to this post

    Want to open radasyncupload window on radiobutton click? Is it possible.....?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 28 Jun 2012 Link to this post

    Hi Ithihas,

    Try the following code snippet to achieve your scenario.

    ASPX:
    <telerik:RadButton runat="server" Text="SELECT" ID="button1" OnClientClicking="OnClientClicking">
    </telerik:RadButton>
    <telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" Localization-Select="" MaxFileInputsCount="1" >
    </telerik:RadAsyncUpload>

    JS:
    <script type="text/javascript">
        function OnClientClicking(sender) {
            sender.set_autoPostBack(false);
            $telerik.$(".ruFileInput").click();
        }
    </script>

    Hope this helps.

    Thanks,
    Princy.
Back to Top