Turn off SyncRowHeight for locking grids to optimize performance

  1. #1

    Turn off SyncRowHeight for locking grids to optimize performance

    We have a grid with 20 columns or so. Some columns are locked. We notice it takes a long time to layout the grid. Profiling shows most of the time is spent in a function called SyncRowHeights. Digging more into the source code, we found this:

    /**     
    * @cfg {Boolean} syncRowHeight Synchronize rowHeight between the normal and     
    * locked grid view. This is turned on by default. If your grid is guaranteed    
     * to have rows of all the same height, you should set this to false to     
    * optimize performance.     */   
     syncRowHeight: true,
    Our grid has rows that grow to fit the content of the cells, but to optimize performance we turned that off. Now it's much faster. It can be up to 1s faster depending on number of rows and columns. Just wanted to share this for others that uses locked columns.
  2. #2
    Excellent tip. Thanks for sharing.
    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Turn RemoteValidation on/off
    By bogc in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 06, 2013, 4:27 AM
  2. [CLOSED] Turn off multiselect in MultiCombo
    By jchau in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 04, 2011, 9:33 PM
  3. Turn off window effects
    By Dominik in forum 1.x Help
    Replies: 1
    Last Post: Dec 15, 2010, 3:43 PM
  4. Replies: 6
    Last Post: Nov 14, 2010, 2:08 AM
  5. [CLOSED] How to turn on resource caching?
    By jchau in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 28, 2009, 7:01 PM

Posting Permissions