Results 1 to 2 of 2

Thread: Auto Refresh Grid - Determine Change in Data Store

  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    22

    Question Auto Refresh Grid - Determine Change in Data Store

    Hi all,

    As always, your input is extermeley helpful and i will attempt to be as detailed as possible.

    I have a very basic Grid Panel using a Remote JSON Data Store.

    So far, not very complicated. The data loads as expected and everyone is happy.

    I now wanted to auto refresh the grid so i setup the below task to accomplish this. Once again, works as expected.

    The issue was that in another post, a user mentioned "Just remember not to actually update the grid if the data hasn't changed. This is for the server to handle using HTTP Response Status Code".

    My question, how can i determine if the store data has changed? The data the store pulls is from multiple tables and this data can change outside of my application. What method can i use to compare the current store data with what can potentially be new?

    Here is the task i setup:

    PHP Code:
    var task = {
         
    run: function() {
         
    ds.load()
         },
         
    interval60000 //60 seconds
      
    }
       
      var 
    runner = new Ext.util.TaskRunner();
       
      
    runner.start(task); 
    Thanks for any input!

  2. #2
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364

    Default

    A "load" call essentially refreshes the entire gird, thus is changing all the time, even though the view may not be.

Similar Threads

  1. Auto refresh of a Grid Data
    By chazzz2473 in forum Ext GWT: Discussion
    Replies: 6
    Last Post: 10 Jun 2011, 12:03 PM
  2. How to auto refresh data grid.
    By khoivu4477 in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 1 Dec 2009, 11:55 PM
  3. loading data into a store does not cause the associated grid to refresh
    By bmf1972 in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 21 Apr 2008, 11:04 PM
  4. Auto refresh grid data
    By sayanb in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 6 Mar 2008, 8:47 AM

Posting Permissions

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