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

New feature request: Search Button in Textbox

3 Answers 203 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Oliver Abraham
Top achievements
Rank 2
Oliver Abraham asked on 20 Jan 2011, 05:04 PM
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

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 26 Jan 2011, 10:59 AM
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>>
0
Oliver Abraham
Top achievements
Rank 2
answered on 31 Jan 2011, 04:46 PM
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

0
Petar Mladenov
Telerik team
answered on 03 Feb 2011, 02:41 PM
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>>
Tags
General Discussions
Asked by
Oliver Abraham
Top achievements
Rank 2
Answers by
Tina Stancheva
Telerik team
Oliver Abraham
Top achievements
Rank 2
Petar Mladenov
Telerik team
Share this question
or