Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Search Delay for TextItem

    We're using a TextItem as a search bar. We can execute the search on change or with the enter key. However, we'd like to have functionality similar to the ListGrid's filter editor.

    https://www.smartclient.com/smartgwt...etchDelay-int-

    The default delay is 300 milliseconds. Is there a way to have this same "delay" functionality with a TextItem? We tried the onChangedHandler but that executes way too much.

    #2
    You do need to use the onChangedHandler, and from there set a timer to initiate search, and cancel/reset the timer if more input occurs. That's how the built-in fetchDelay feature is implemented and how this kind of thing is implemented in general.

    Comment


      #3
      Perfect, thank you for the guidance.

      Comment

      Working...
      X