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

TextBox with Multiline==true doesn't have NullText

3 Answers 139 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Max
Top achievements
Rank 1
Max asked on 17 Mar 2008, 02:10 PM
TextBox doesn't have text and focus and shows NullText. When I click to textbox and click to another control NullText is disappears!

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 21 Mar 2008, 07:48 AM
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
0
superold
Top achievements
Rank 1
answered on 03 Oct 2008, 03:12 PM
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
0
Nikolay
Telerik team
answered on 08 Oct 2008, 03:33 PM
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.
Tags
TextBox
Asked by
Max
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
superold
Top achievements
Rank 1
Share this question
or