Rad Async Upload - Changing text of Submit Button

Thread is closed for posting
3 posts, 0 answers
  1. Dan
    Dan avatar
    11 posts
    Member since:
    Dec 2013

    Posted 09 Dec 2013 Link to this post

    Hello, all,
      I think that my question might seem silly to many.  I have a request from a Client who would like to change the Text displayed in the Submit Button.  At present, I have not been able to determine how to do this.  Any ideas?

    Thank you,
      Dan
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 09 Dec 2013 Link to this post

    Hi Dan,

    Please have a look into the following code snippet to change the text of a RadButton as well as the Select Button of RadAsyncUpload on 'OnClientClicked' event of RadButton.

    ASPX:
    <telerik:RadButton ID="RadButton1" runat="server" Text="Submit" AutoPostBack="false"
        OnClientClicked="ChangeText">
    </telerik:RadButton>
    <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server">
    </telerik:RadAsyncUpload>

    JavaScript:
    <script type="text/javascript">
        function ChangeText(sender, args) {
            sender.set_text("Updated");
            var upload = $find("<%=RadAsyncUpload1.ClientID %>");
            $('.ruBrowse').val("Updated");
        }
    </script>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dan
    Dan avatar
    11 posts
    Member since:
    Dec 2013

    Posted 10 Dec 2013 Link to this post

    Thanks, Shinu.
Back to Top