New feature request: Search Button in Textbox

4 posts, 0 answers
  1. Oliver Abraham
    Oliver Abraham avatar
    13 posts
    Member since:
    Mar 2010

    Posted 20 Jan 2011 Link to this post

    Hello,

    we need a textbox that has a little "Search button" next to it.
    You'll find this kind of control in MS Outlook, for example.
    (Nice to have would be the little button that opens the drop down menu)

    You think you could develop this soon ?

    Best regards
    Oliver Abraham, Inveos, Hamburg
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3299 posts

    Posted 26 Jan 2011 Link to this post

    Hello Oliver Abraham,

    Please accpet our apology for the delayed response.

    You can create a custom control with the required style, using the RadButton, RadDropDownButton and the RadWatermarkTextBox controls. You can edit the RadDropDownButton ControlTemplate to place a modified RadWatermarkTextBox with a RadButton placed inside its ControlTemplate.

    I prepared a sample project illustrating a possible approach. Please have a look at it and let us know if it works for you or if we can further assist you.

    Regards,
    Tina Stancheva
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. Oliver Abraham
    Oliver Abraham avatar
    13 posts
    Member since:
    Mar 2010

    Posted 31 Jan 2011 Link to this post

    Thanks! That solves my problem half-way.I need further help.

    Question 1: How do I get the text entered ? The property "SearchControl.Content" always returns the word "Search".

    Question 2: how can I make the "Enter" key send the "RadButton_Click" event rather than opening the listbox ?

    Thanks a lot in advance & best regards.
    Oliver Abraham

  4. Petar Mladenov
    Admin
    Petar Mladenov avatar
    3155 posts

    Posted 03 Feb 2011 Link to this post

    Hi Oliver Abraham,

    Please check out the attached project where the mentioned functionalities are described. In order to get the text of the WatermarkTextBox, I access the watermark via the UIElementExtension method ChildrenOfType<>. In order to handle the Enter key down event of the watermarktextbox, I use the KeyDown event. Feel free to ask if you need further assistance.

    Best wishes,
    Petar Mladenov
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top