PDA

View Full Version : How do I 'freeze' a grid while ds changes



amackay11
15 Jun 2007, 6:12 PM
I want to do something like...

myEditgrid.freezeupdates()
....datastore changes such as adding rows, resorting.
myEditgrid.render() // all the datastore changes are reflected on grid

I don't want the user to see all the grid changes and associated flicker as they happen, just the final results. In the VB world, I could set screen updates off. I'm sure this is simple but have searched and haven't found anything. Maybe a css change on the grid? Remove some listeners?

evant
15 Jun 2007, 7:31 PM
Untested, but you might want to try:



grid.el.mask();
//do stuff
grid.el.unmask();