1. #1
    Sencha Premium Member
    Join Date
    Dec 2011
    Posts
    34
    Answers
    1
    Vote Rating
    0
    MarcT is on a distinguished road

      0  

    Default Unanswered: Incremental reload of Store

    Unanswered: 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
    Location
    Superior, CO
    Posts
    411
    Answers
    20
    Vote Rating
    21
    icfantv will become famous soon enough icfantv will become famous soon enough

      0  

    Default


    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.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar