Large String Render Issues

3 posts, 1 answers
  1. Chris Ward
    Chris Ward avatar
    52 posts
    Member since:
    Jan 2010

    Posted 20 Sep 2012 Link to this post

    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. Answer
    Jack
    Admin
    Jack avatar
    2333 posts

    Posted 21 Sep 2012 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Chris Ward
    Chris Ward avatar
    52 posts
    Member since:
    Jan 2010

    Posted 25 Sep 2012 Link to this post

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