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

Large String Render Issues

2 Answers 77 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Chris Ward
Top achievements
Rank 1
Chris Ward asked on 20 Sep 2012, 01:27 PM
Why does RadTextBox stop rendering text after 5,509 characters?  Upon entering a 5,510th character the text disappears, and if you press backspace it comes back.  Is this a known limitation?  If so, where is it documented?

Edit: Actually it appears to be based on width, not number of characters.  It happens at 4,679->4,680 lowercase letter 'o's with Segoe UI, 8.25pt font.

2 Answers, 1 is accepted

Sort by
0
Accepted
Jack
Telerik team
answered on 21 Sep 2012, 01:23 PM
Hello Chris Ward,

RadTextBox is just a wrapper of the standard TextBox control available in WinForms and this is a known issue with it. The control uses GDI to paint its text and GDI DrawString method is not able to draw such long strings. We created the RadTextBoxControl which has our own implementation of a text box, however it has the same issue. I logged it in our issue tracking system and we will try to address it in one of our future versions. I updated also your Telerik points for bringing our attention to the issue. Here is a link to the issue where you can add your vote for it: http://www.telerik.com/support/pits.aspx#/public/winforms/12723.

If you have any other questions, do not hesitate to ask.
 
Regards,
Jack
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Chris Ward
Top achievements
Rank 1
answered on 25 Sep 2012, 02:01 PM
Thank you for your feedback Jack.  I stumbled across this accidentally, but it would be a great selling point if you could solve the issue for your RadTextBoxControl.
Tags
TextBox
Asked by
Chris Ward
Top achievements
Rank 1
Answers by
Jack
Telerik team
Chris Ward
Top achievements
Rank 1
Share this question
or