Announcement

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

    use a TextItem filter a grid

    I want to be able to use a TextItem in a form to filter a grid on every new keypress.

    My approch is to use OnKeyUpHandler and filter the grid based on the new value in the TextItem.

    The problem:
    When keys are pressed at a fast rate some of the characters presse are missing in the field.

    Is there a "keyBurstEnd" handler :)

    SmartClient Version: v9.0p_2014-01-26/PowerEdition Deployment (built 2014-01-26) on FF 26.0

    #2
    Hi Sindre,

    I'd think that http://www.smartclient.com/smartgwte...angeHandler%29 would be the better handler.

    As far as I know there is no "keyBurstEnd"-handler, but if you implement on your own, I'd be interested in the solution.
    Generally speaking it should be possible. See http://www.smartclient.com/smartgwte...ang.Integer%29, where there is a similar built-in behaviour. I suppose it is made of a timer+a CallBack and a cancel (or reset) mechanism if the user enters data while the timer is still running.

    Best regards,
    Blama

    Comment


      #3
      If you are filtering on each key press, be sure to set rpcRequest/dsRequest.showPrompt to false. Otherwise a modal mask appears during the fetch, which will briefly prevent typed characters from being received.

      Comment

      Working...
      X