Results 1 to 4 of 4

Thread: List auto refresh

  1. #1

    Default List auto refresh

    Hello, I have a system in EXTJS 4.1 with Yiiframework.

    I want refresh automatically a list. Only if the tab is active.

    Administrator panel : http://177.70.1.166/billing/
    Username: root
    Password: magnus

    Mene Calls Online

    Best regards

  2. #2
    Sencha User
    Join Date
    May 2013
    Posts
    23
    Answers
    2

    Default

    May be in 'afterrecordchange' or 'viewready' event, you can check the state of your tab and do a gridObj.store.loaddata(....Grid response). to load/Refresh your grid.

  3. #3

    Default

    How I check if the tab is active?

    Best regards

  4. #4
    Sencha User
    Join Date
    Jan 2010
    Location
    Kansas
    Posts
    522
    Answers
    32

    Default

    What's the event which triggers the refresh? The tab becoming active? A timer? Both? I would hook in some events to your controller that determine when the refresh should occur, and then in your handler you can check if the tab is active (http://docs.sencha.com/extjs/4.2.1/#...d-getActiveTab ... compare to the target tab) and then reload the store

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
  •