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

Button Text

1 Answer 38 Views
Input
This is a migrated thread and some comments may be shown as answers.
Kumar
Top achievements
Rank 1
Kumar asked on 13 Oct 2010, 05:09 AM
Hi,

Is it possible to assign text to button assosiated with RADmaskedtextBox.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 13 Oct 2010, 09:38 AM
Hi Kumar,

Generally, the control is note designed to support this, but you can use the following approach:

ASPX

<telerik:RadTextBox ID="RTB1" runat="server" ShowButton="true" ButtonCssClass="mybtn" />
 
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
 
Sys.Application.add_init(setButtonText);
 
function setButtonText()
{
    $get("<%= RTB1.ClientID %>_GoButton").innerHTML = "btn text";
}
 
</script>
</telerik:RadCodeBlock>

CSS

.RadInput a.mybtn
{
    display:inline;
    background:none transparent;
    width:auto;
    height:auto;
    text-indent:0;
    color:#000;
}


Greetings,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Input
Asked by
Kumar
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or