RadSearchBox and scrolling to go to the result

2 posts, 0 answers
  1. segolene
    segolene avatar
    3 posts
    Member since:
    Sep 2016

    Posted 13 Sep Link to this post

    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 ?
  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    833 posts

    Posted 15 Sep Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top