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

watermark will get disable when i start typing

3 Answers 86 Views
WatermarkTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rahul
Top achievements
Rank 1
Rahul asked on 10 Jul 2012, 05:29 AM
Hi,

Is there any way to disable the watermark when we start typing,
Right now its disabling when the control gets the focus...

3 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 10 Jul 2012, 01:17 PM
Hi Rahul,

The TextBox focus state is the text-editing mode by convention and that is why when you set focus on the control or start typing the watermark content is gone. Of course, if you want to edit its states you can open your project with Microsoft Expression Blend and edit the control template from there by following these steps:
  • select the RadWaterMarkTextBox and right-click on it
  • select 'Edit Template' and then choose 'Edit a Copy'
Now you can see and edit all control visual states.

Here you can find more details on RadWaterMarkTextBox.

Kind regards,
Todor
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Nick
Top achievements
Rank 1
answered on 28 Sep 2012, 06:40 AM
Hi,

I'll see if I can follow your advice to Rahul but his comment does make some sense. We have a login form with two fields and a button, these are the user name and password. The problem is that the username field gets the focus by default so the user might not realise what should be typed. Arguably we should just go back to using labels but I kind of like the watermark text field.

Nick
0
Boyan
Telerik team
answered on 03 Oct 2012, 08:04 AM
Hello Nick,

We have included this behavior in our plans and most probably it will be included in the SP after Q3.

All the best,
Boyan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
WatermarkTextBox
Asked by
Rahul
Top achievements
Rank 1
Answers by
Todor
Telerik team
Nick
Top achievements
Rank 1
Boyan
Telerik team
Share this question
or