Results 1 to 2 of 2

Thread: How do I 'freeze' a grid while ds changes

  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2007
    Posts
    90

    Default How do I 'freeze' a grid while ds changes

    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?
    Andy

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,256

    Default

    Untested, but you might want to try:

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

Posting Permissions

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