Unable to enable RadAsyncUpload

3 posts, 0 answers
  1. Payal
    Payal avatar
    5 posts
    Member since:
    Jun 2014

    Posted 23 Jun 2014 Link to this post

    What i am trying to do is the RadAsyncUpload control is disabled by default and on selection of an item from Combobox i want to enable RadAsyncUpload control. for this i am calling an javascript. it enables the RadAsyncUpload control but not the control is not actually working as RadAsyncUpload control

    here is the javascript:

      function ddlDocTypeOnClientSelectedIndexChanged(sender, args) {
         
            var Uploader = $find("<%= rdFileUpload.ClientID %>");
          
            Uploader.set_enabled(true);
          
        }

    Please let me know what I am missing here.


  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 Jun 2014 in reply to Payal Link to this post

    Hi Payal,

    As a work around please try to disable the RadAsyncUpload from the JavaScript as follows.

    ASPX:
    <telerik:RadComboBox ID="rcboItemList" runat="server" EmptyMessage="select" OnClientSelectedIndexChanged="enableUpload">
        <Items>
            <telerik:RadComboBoxItem Text="Enable Upload" />
        </Items>
    </telerik:RadComboBox>
    <telerik:RadAsyncUpload ID="rasyncuploadAllFiles" runat="server">
    </telerik:RadAsyncUpload>

    JavaScript:
    function pageLoad() {
        var upload = $find("<%=rasyncuploadAllFiles.ClientID%>");
        upload.set_enabled(false);
    }
    function enableUpload(sender, args) {
        var upload = $find("<%=rasyncuploadAllFiles.ClientID%>");
        if (args.get_item().get_text() == "Enable Upload") {
            upload.set_enabled(true);
        }
    }

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Payal
    Payal avatar
    5 posts
    Member since:
    Jun 2014

    Posted 23 Jun 2014 Link to this post

    Hi Shinu,

    Thanks for the workaround..it resolved the issue.
Back to Top