This is a migrated thread and some comments may be shown as answers.

Rad Async Upload - Changing text of Submit Button

2 Answers 218 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 09 Dec 2013, 05:51 PM
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 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Dec 2013, 03:15 AM
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.
0
Dan
Top achievements
Rank 1
answered on 10 Dec 2013, 09:29 PM
Thanks, Shinu.
Tags
Upload (Obsolete)
Asked by
Dan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Dan
Top achievements
Rank 1
Share this question
or