client manage RadAsyncUpload

2 posts, 0 answers
  1. Sofiene
    Sofiene avatar
    21 posts
    Member since:
    Feb 2012

    Posted 30 Aug 2012 Link to this post

    Hi , 
    how can i  enable / disable  RadAsyncUpload control  in client side ? 

    with my way that disable / enable control but when enabled you can not select file to upload , the button not work . 

    <telerik:RadAsyncUpload            Width="220px"
     EnableViewState="true"
     runat="server"
     ID="AUJustificatifEnfant"
     MaxFileInputsCount="1"
      Enabled="false"
     >
        <script type="text/javascript">
                   function GetValue(sender, eventArgs) {
    var AUJustificatifEnfant = document.getElementById('AUJustificatifEnfant');
      
     AUJustificatifEnfant.disabled = ! (chkAutreMotivation.checked || chkEnfantBasAge.checked);
        }
            </script>



  2. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 04 Sep 2012 Link to this post

    Hello,

    To enable/disable RadAsyncUpload client-side please use the "set_enabled" method:

    <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server">
    </telerik:RadAsyncUpload>
     
    <script type="text/javascript">
        function test() {
            var upload1 = $find("<%=RadAsyncUpload1.ClientID %>");
            upload1.set_enabled(!upload1.get_enabled());
             
            }
     
    </script>



    Regards,
    Helen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top