Results 1 to 2 of 2

Thread: Incremental reload of Store

  1. #1
    Sencha Premium Member
    Join Date
    Dec 2011
    Vote Rating

    Default Incremental reload of Store

    I have a grid where each row is a log entry read from the server via JSON. The server continually receives log entries from other applications, and I poll the server to find out if there are new entries. Currently, though, that results in a full reload of the grid every time there's a new object. Since I have several hundred objects in my store, and often only one or two new entries on the server, it is very wasteful to re-send the full list and reload the entire store, plus it gives a bad UE because the grid grays out and freezes during the reload.

    Is there a way to configure the Store to receive an incremental update, and for the grid to only parse out and append the new objects?

  2. #2
    Ext GWT Premium Member icfantv's Avatar
    Join Date
    Sep 2011
    Superior, CO
    Vote Rating


    While I don't know if there is built-in functionality, you can specify the offset and limit to get only the new items you care about.

    Additionally, I've not tried updating the data store live, but what happens if you get the list store off the grid and call add(...) on it (the default is to add at the end of the list)?

    I *think* the GridView listens for StoreAddEvents, it looks like it does and updates the grid.

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