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

Proper Casing in RadTextBox

4 Answers 113 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Don
Top achievements
Rank 1
Don asked on 14 Aug 2012, 10:33 PM
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.

4 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 17 Aug 2012, 12:06 PM
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 >>
0
Don
Top achievements
Rank 1
answered on 17 Aug 2012, 01:40 PM
Thanks for the workaround, Stefan!
0
Michael
Top achievements
Rank 1
answered on 02 Sep 2016, 10:42 PM

Hi,

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

0
Dimitar
Telerik team
answered on 05 Sep 2016, 12:39 PM
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.
Tags
TextBox
Asked by
Don
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Don
Top achievements
Rank 1
Michael
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or