Proper Casing in RadTextBox

5 posts, 1 answers
  1. Don
    Don avatar
    60 posts
    Member since:
    Aug 2010

    Posted 14 Aug 2012 Link to this post

    I noticed that the RadTextBox does not have a Character Casing option of Proper Casing, which is basically capitalizing the first letter of each word. It would be nice if the RadTextBox control had this property.
  2. Answer
    Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 17 Aug 2012 Link to this post

    Hello Don,

    Thank you for writing.

    Your proposal seems quite interesting and for this reason I will add it in our Public Issue Tracking System, where users can vote for it. Feel free to add your vote here: http://www.telerik.com/support/pits.aspx#/public/winforms/12334 


    Meanwhile, you can achieve this behavior by using the following code: 
    TextInfo textInfo = new CultureInfo("en-US", false).TextInfo;
    bool updating = false;
    void radTextBox1_TextChanging(object sender, TextChangingEventArgs e)
    {
        if (!updating)
        {
            int pos = radTextBox1.TextBoxElement.TextBoxItem.SelectionStart;
            updating = true;
            radTextBox1.Text = textInfo.ToTitleCase(radTextBox1.Text);
            radTextBox1.TextBoxElement.TextBoxItem.SelectionStart = pos;
            updating = false;
        }
    }

    Your Telerik Points have been updated for this request.

    I hope that you find my answer helpful.
     
    All the best,
    Stefan
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Don
    Don avatar
    60 posts
    Member since:
    Aug 2010

    Posted 17 Aug 2012 Link to this post

    Thanks for the workaround, Stefan!
  5. Michael
    Michael avatar
    41 posts
    Member since:
    Oct 2010

    Posted 02 Sep Link to this post

    Hi,

    This is an old post, but was this ever implemented?  The links to voting don't seem to be working.

  6. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 05 Sep Link to this post

    Hi Michael,

    This is still not implemented, the item is now in our Feedback Portal and I have added a vote for it on your behalf. You can track its progress, subscribe for status changes and add your comment to it here

    I hope this will be useful. 

    Regards,
    Dimitar
    Telerik by Progress
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Back to Top
UI for WinForms is Visual Studio 2017 Ready