[CLOSED] Fastest way to get a grid's columns?

  1. #1

    [CLOSED] Fastest way to get a grid's columns?

    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.
    Last edited by Daniil; Nov 12, 2013 at 9:17 AM. Reason: [CLOSED]
  2. #2
    Hi @jchau,

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

Similar Threads

  1. [CLOSED] MVC Fastest way to display data on the Grid
    By leonardm in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 01, 2013, 7:00 PM
  2. Replies: 0
    Last Post: Aug 23, 2012, 11:55 PM
  3. hide columns Grid Ext 2.0
    By sysmo in forum 2.x Help
    Replies: 3
    Last Post: Jun 15, 2012, 7:07 PM
  4. Add other columns to Property Grid
    By huzzy143 in forum 1.x Help
    Replies: 0
    Last Post: Sep 24, 2011, 12:46 PM
  5. [CLOSED] Link in Grid defined by 2 Grid Columns
    By macap in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 23, 2009, 7:47 AM

Posting Permissions