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

Problem with WatermarkBehavior 'HiddenWhenFocused'

3 Answers 103 Views
WatermarkTextBox
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 2
Iron
Iron
Veteran
Peter asked on 09 Mar 2021, 02:30 PM

Hello,

I am using your WatermarkTextBox inside a RadToolBar.The property 'WatermarkBehavior' is set to 'HiddenWhenFocused'.

Now when I am click on an area outside the RadToolBar, the Watermark text isn't reset due to the LostFocus-Event for the control is not called.

Can you help me with a workaround for that?

Thanks!

Tobias

3 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 11 Mar 2021, 03:10 PM

Hello Peter,

You can achieve the desired result by setting the FocusManager.IsFocusScope property of the RadToolBar control to False:

<telerik:RadToolBar FocusManager.IsFocusScope="False"

For your convenience, I've prepared a small sample project to demonstrate this approach. Can you please give this a try and let me know if it provides the expected result? 

Regards,
Dilyan Traykov
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
Peter
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 15 Mar 2021, 07:17 AM

Hello Dilyan,

yeah, that works like a charm.

Cheers!

Tobias

 

0
Dilyan Traykov
Telerik team
answered on 15 Mar 2021, 10:42 AM

Hello Tobias,

I'm glad to hear that the proposed solution worked for you. Do let me know if I can further assist you with anything else.

Regards,
Dilyan Traykov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
WatermarkTextBox
Asked by
Peter
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Dilyan Traykov
Telerik team
Peter
Top achievements
Rank 2
Iron
Iron
Veteran
Share this question
or