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

RadSearchBox and scrolling to go to the result

1 Answer 55 Views
SearchBox
This is a migrated thread and some comments may be shown as answers.
segolene
Top achievements
Rank 1
segolene asked on 13 Sep 2016, 08:17 AM
Hello !
I use a RadSearchBox like this : http://demos.telerik.com/aspnet-ajax/searchbox/examples/overview/defaultcs.aspx.
And I search to have my result in First or a "auto-scroll" to go to my result.
I tried with onFocus and this code :  var typeSearchBox = $find("<%= RadSearchBox1.ClientID %>");
                                                          typeSearchBox = typeSearchBox.get_inputElement();
                                                           typeSearchBox.focus();

But I don't arrive. Do you have a idea ?

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 15 Sep 2016, 06:02 AM
Hello Segolene,

The SearchBox will automatically place the result matching the text you entered on first place. Using the demo you linked as an example if you search for "ademir" for instance only one result will be found and displayed on top of the dropdown.  However, if you enter only "ad" multiple results matching this strings will be returned, so could you please elaborate more on how do you envision the scrolling explaining step by step the user actions and the expected result?

Regards,
Ivan Danchev
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
SearchBox
Asked by
segolene
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or