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

Textbox with clear button

2 Answers 1092 Views
WatermarkTextBox
This is a migrated thread and some comments may be shown as answers.
Birgit
Top achievements
Rank 1
Birgit asked on 13 Jun 2017, 11:35 AM

Hello

 

do you have a Textbox with clear button (like the search textbox in ShowSearchPanel)?

I can build my own, but for me it is a basic control, so i'm suprise that i find nothing by Telerik.

 

Thank you

2 Answers, 1 is accepted

Sort by
0
Birgit
Top achievements
Rank 1
answered on 13 Jun 2017, 03:52 PM

The solution is:

<telerik:RadMaskedTextInput IsClearButtonVisible="True"
         EmptyContent="placeholder text"
         TextMode="PlainText"
         Placehoder=" "
         HorizontalAlignment="Center"
         VerticalAlignment="Center"/>

 

Many thanks to Lance for the fast support.

0
Accepted
Petar Mladenov
Telerik team
answered on 13 Jun 2017, 04:39 PM
Hello Birgit,

If you need an input closer to MS TextBox you can also consider no-mask (Mask=""). This will provide unlimited input compared to the one from the snippet (PlaceHolder = " " and Mask=a20 (default setting)).

Regards,
Petar Mladenov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
WatermarkTextBox
Asked by
Birgit
Top achievements
Rank 1
Answers by
Birgit
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or