Textbox with clear button

3 posts, 1 answers
  1. Birgit
    Birgit avatar
    19 posts
    Member since:
    Apr 2016

    Posted 13 Jun Link to this post

    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. Birgit
    Birgit avatar
    19 posts
    Member since:
    Apr 2016

    Posted 13 Jun Link to this post

    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.

  3. Answer
    Petar Mladenov
    Admin
    Petar Mladenov avatar
    2986 posts

    Posted 13 Jun Link to this post

    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.
Back to Top