PDA

View Full Version : [CLOSED] Fastest way to get a grid's columns?



jchau
Nov 06, 2013, 3:18 PM
What's the fastest way in javascript to get a column in grid by dataIndex or columnIndex? We have been using:



var column = grid.headerCt.getGridColumns()[colIndex];


But this isn't that fast. We are doing this in renderer of a column. When the grid contains many rows, we notice slowness.

Daniil
Nov 06, 2013, 3:54 PM
Hi @jchau,

Do you need a Column which the Renderer is defined for? If so, please use the "this" reference.