enter uppercase letters

4 posts, 1 answers
  1. Shahi
    Shahi avatar
    17 posts
    Member since:
    Apr 2013

    Posted 12 Nov 2013 Link to this post

    Hi telerik
    Is there any way to force the user to enter uppercase letters along with other characters in radtextbox?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 12 Nov 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shahi
    Shahi avatar
    17 posts
    Member since:
    Apr 2013

    Posted 12 Nov 2013 Link to this post

    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.
  5. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 12 Nov 2013 Link to this post

    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.
Back to Top