Skip to Content
0

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

May 19, 2017 at 12:01 AM

53

avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Krishna Kishor Kammaje
May 19, 2017 at 12:23 AM
-1

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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.

0
Krishna Kishor Kammaje
May 19, 2017 at 12:23 AM
-1

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

Share
10 |10000 characters needed characters left characters exceeded