TextBox with Multiline==true doesn't have NullText

4 posts, 0 answers
  1. Max
    Max avatar
    6 posts
    Member since:
    Jan 2008

    Posted 17 Mar 2008 Link to this post

    TextBox doesn't have text and focus and shows NullText. When I click to textbox and click to another control NullText is disappears!
  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 21 Mar 2008 Link to this post

    Hello Max,

    Currently, RadTextBox does not support NullText in Multiline mode. We will consider adding such functionality in one of our next releases.

    If you have additional questions, do not hesitate to contact me.

    Greetings,
    Nikolay
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jorge Delgado-Lopez
    Jorge Delgado-Lopez avatar
    82 posts
    Member since:
    Aug 2007

    Posted 03 Oct 2008 Link to this post

    Hi. I am on 2008 Q2 SP 1.

    Is there any progress on this issue? There is no correct way to have "sample" text on multiline mode, and if the textbox is in multiline so should the sample text as I see it. And of course adding \r\n has its consequences when the font is changed.

    Thanks
    - j
  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 08 Oct 2008 Link to this post

    Hello Jorge Delgado-Lopez,

    At this time the NullText functionality for a multiline RadTextBox is not implemented. However, you make your own implementation, which will give you the same visual results. I have demonstrated it in the sample project attached. The approach concerns setting Text and ForeColor properties of the RadTextBox.

    Regarding the "\r\n" escape sequence, you do not need it when setting Text in RadTextBox. The text which cannot be put on the current line will automatically be transferred to a new line.

    If you have additional questions, feel free to contact me.

    Regards,
    Nikolay
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top