PDA

View Full Version : Grid refresh without redraw



oracle.cons.tr
22 Feb 2014, 12:44 PM
Hi,
I have a grid with thousands of records and i'd like to change data seamlessly with lets say every 10
seconds without any loading indicator that's what happens when you reload a store.
I mean like what gmail does when new mail comes.

Is there a way to do this in extjs without any performance loss.

Thanks.

scottmartin
22 Feb 2014, 5:57 PM
So you want to insert new records only .. you are not concerned with changes to existing data?

oracle.cons.tr
22 Feb 2014, 6:24 PM
Actually my gmail example was a bit misleading.
mostly I am concerned about updates. And let's say there might be 200 records updated every 10 seconds

brian428
22 Feb 2014, 8:44 PM
If you mean you just don't want the automatic loading mask on the Grid, then turn it off in the Grid's viewConfig by setting loadMask (http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.grid.View-cfg-loadMask): false.

oracle.cons.tr
23 Feb 2014, 10:07 AM
Gave it a try but right now since i have very small set of data for testing i couldn't be sure if
store.load locks the grid while loading data. Does it ?

Thanks.

brian428
23 Feb 2014, 10:53 AM
What do you mean by "locks"? If you turn off the automatic loading mask, then there shouldn't be anything blocking the user from using the grid.