cancel
Showing results for 
Search instead for 
Did you mean: 

Event on sap.m.SearchField suggest() rendering complete

Former Member
0 Kudos

I have a sap.m.SearchField bound to a JSONModel with over 200 items. After triggering .suggest() on the SeachField object, there's a delay before the suggestions are rendered. I'd like to show a busy indicator before .suggest() and then hide the busy indicator once the rendering of the suggestions list is complete. So, is there an event on the SearchField I can listen for to hide the busy indicator?

Accepted Solutions (0)

Answers (2)

Answers (2)

kammaje_cis
Active Contributor

There is an event called 'suggest'. Did you try with that.

kammaje_cis
Active Contributor
0 Kudos

There is an event called 'suggest'. Did you try with that.

Former Member
0 Kudos

Of course. The suggest event is triggered when the SearchField is focused or the searchValue changes.

I'm calling .suggest() within my onSearchFieldSuggest(oEvent) handler.

The SearchField is a little tricky, since the suggest() method toggles visibility of the suggestions list. What I would like to be able to do is display a busy indicator after calling suggest(true), then hide the busy indicator once the suggestion list is actually rendered.