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

RadSearchBox suggestions list triggered from server side

1 Answer 73 Views
SearchBox
This is a migrated thread and some comments may be shown as answers.
Iago
Top achievements
Rank 1
Iago asked on 10 Jul 2017, 03:48 PM

Hello,

I am working with a RadSearchBox and I would be interested in displaying a list with suggestions triggered from server side, just like when user types in RadSearchBox, but triggered from server instead. The idea is user search triggers a process that  populates my database and when process is done, I would like to display the list of suggestions that would match the original search with actual data. Is there any way?


Thank you in advance.

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 13 Jul 2017, 05:07 PM
Hello Iago,

The SearchBox populates its elements using callback request to the server. That means the elements should be loaded client-side. 

Requesting the items from the client-side, without user input, would require the use of the _requestItems(searchString) private method of the SearchBox to make the request. 

Here is a screencast demonstrating the behavior of the attached project.

Regards,
Peter Milchev
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
SearchBox
Asked by
Iago
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or