Skip to Content
avatar image
Former Member

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 19, 2017 at 12:23 AM
    -1

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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • May 19, 2017 at 12:23 AM
    -1

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

    Add comment
    10|10000 characters needed characters exceeded