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

enter uppercase letters

3 Answers 43 Views
Input
This is a migrated thread and some comments may be shown as answers.
Shahi
Top achievements
Rank 1
Shahi asked on 12 Nov 2013, 01:10 PM
Hi telerik
Is there any way to force the user to enter uppercase letters along with other characters in radtextbox?

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 12 Nov 2013, 01:23 PM
Hi Shahi,

One suggestion is you can use the CSS text-transform property which controls the capitalization of text. Please try the following CSS.

CSS:
<style type="text/css">
    .riTextBox
    {
        text-transform: uppercase;
    }
</style>

Thanks,
Princy.
0
Shahi
Top achievements
Rank 1
answered on 12 Nov 2013, 03:54 PM
Hi princy,
This works and seems to be the most simple solution but it affects all the radtextboxes in that page. I want this to work for one particular textbox.
0
Accepted
Princy
Top achievements
Rank 1
answered on 13 Nov 2013, 04:58 AM
Hi Shahi,

You can use the ID of the respective RadTextBox in the CSS so that it wont affect all the RadTextBoxes in the page.

ASPX:
<telerik:RadTextBox ID="RadTextBox1" runat="server">
</telerik:RadTextBox>
<telerik:RadTextBox ID="RadTextBox2" runat="server">
</telerik:RadTextBox>

CSS:
<style type="text/css">
    #RadTextBox1.riTextBox
    {
        text-transform: uppercase;
    }
</style>

Thanks,
Princy.
Tags
Input
Asked by
Shahi
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Shahi
Top achievements
Rank 1
Share this question
or