View Full Version : Turn off SyncRowHeight for locking grids to optimize performance

Apr 14, 2013, 2:31 AM
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.

Apr 14, 2013, 6:15 AM
Excellent tip. Thanks for sharing.