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

Multi Line TextBox

6 Answers 1535 Views
WatermarkTextBox
This is a migrated thread and some comments may be shown as answers.
gerardo
Top achievements
Rank 1
Veteran
gerardo asked on 09 Sep 2020, 05:48 AM

Good Day.

 

Is there a way the have the WatermarkTextBox accept multi line text including next lines? I dont want to use the RadRichTextBox as it looks much complicated the what I needed. I just need a simple multi line textbox.

 

Also, I noticed that with WatermarkTextBox, It does not set the caret to the end of the text when I input a long text. As a result, it only displays the first part of the long text when typing. I already set the property  SelectionOnFocus to CaretToEnd.

It only shows the expected behavior when I navigate to the end of the text then type again

6 Answers, 1 is accepted

Sort by
0
gerardo
Top achievements
Rank 1
Veteran
answered on 09 Sep 2020, 05:53 AM
Sorry for the Title. I don't see any option to edit it
0
gerardo
Top achievements
Rank 1
Veteran
answered on 09 Sep 2020, 01:06 PM

I achieved the multiline WatermarkTextBox by setting the Height, TextWrapping And AcceptsReturn="True" 

The only problem is the Textbox behavior when typing long text. Thanks

0
Martin Ivanov
Telerik team
answered on 10 Sep 2020, 07:16 AM

Hello Gerardo,

Can you send a short video showing the troublesome behavior along with a code snippet of the RadWatermarkTextBox definition in Xaml?

Regards,
Martin Ivanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
gerardo
Top achievements
Rank 1
Veteran
answered on 10 Sep 2020, 09:48 AM

Hi Sir Martin

Attached are the code i am using and the behavior I am pointing.

Thank you

0
Accepted
Martin Ivanov
Telerik team
answered on 11 Sep 2020, 08:40 AM

Hello Gerardo,

I've tested the attached code, but I wasn't able to reproduce the issue. Can you check the attached project and let me know if I am missing anything?

Regards,
Martin Ivanov
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

0
gerardo
Top achievements
Rank 1
Veteran
answered on 20 Sep 2020, 06:37 AM

Thank you for the sample app Sir Martin. I was able to point out the issue because of that. Turns out that the problem is because of the custom style I made for ScrollViewer. The textbox now works as expected. Thanks.

Tags
WatermarkTextBox
Asked by
gerardo
Top achievements
Rank 1
Veteran
Answers by
gerardo
Top achievements
Rank 1
Veteran
Martin Ivanov
Telerik team
Share this question
or