Results 1 to 3 of 3

Thread: [Q] How to delay selectionchange events

  1. #1
    Sencha User
    Join Date
    Apr 2014
    Posts
    29
    Answers
    2

    Default Answered: [Q] How to delay selectionchange events

    Hi gurus

    ExtJS 4.2.2

    I have a grid panel and a form panel. selectionchange in the grid triggers the load of a form in the form panel. I would like for the user to be able to scroll up and down in the grid and only when the user settles on a grid row the form is loaded. At the moment the form is loaded on every selectionchange.

    I have tried something like this:

    Code:
    '[xtype=shop.categoryTree]': { selectionchange: { fn: this.onCategorySelectionChange, delay: 3000 }}
    but it doesn't make any difference.

    Is there any way to delay the event a number of milliseconds?

    Thanks in advance

  2. Delay just means defer the execution, the event will still always fire. You want the "buffer" option.

  3. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258
    Answers
    759

    Default

    Delay just means defer the execution, the event will still always fire. You want the "buffer" option.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  4. #3
    Sencha User
    Join Date
    Apr 2014
    Posts
    29
    Answers
    2

    Default

    Quote Originally Posted by evant View Post
    You want the "buffer" option.
    Got it!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •