Results 1 to 2 of 2

Thread: Bug colIndex in renderer method

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User
    Join Date
    Oct 2016
    Posts
    26

    Default Bug colIndex in renderer method

    Ext version tested:




    • Ext 6.6.2.0.981






    Browser versions tested against:




    • 54.0.2840.99
    • Google Chrome






    DOCTYPE tested against:




    • HTML 5






    Description:

    if a grid has the rowwidget plugin and you use the renderer method on a colum the colIndex is
    wrong.

    i found a workaround :
    Code:
    var array= me.getPlugins();
            for(var i=0;i<array.length;i++){
                if(array[i].ptype=="rowwidget"){
                    colIndex--;
                    break;
                }
            }

    Steps to reproduce the problem:
    to reproduce the bug run the fiddle and watch what i print in console.

    1: open this fiddle and run it :
    https://fiddle.sencha.com/#view/editor&fiddle/1kvc
    2: click on the rowexpander and then click on add on the tbar of the child grid

  2. #2

    Default

    The row expander is treated as a column and the index is zero based

    it's : Expander Column -> 0, Col1 -> 1, Col2 -> 2

    The Engineers also mentioned not to concern yourself with whether the column index numeric value matches the name of the column. It could change based on a large number of factors (row expanders, reordering columns, etc)



    Kevin Jackson
    Sencha Support Team

Similar Threads

  1. [CLOSED] 4.2.0.663 Locked TreePanel: wrong colIndex in column renderer
    By campersau1 in forum Ext:Bugs
    Replies: 1
    Last Post: 21 May 2013, 9:44 AM
  2. [DUP] renderer method has problem
    By Dengqiao Huang in forum Ext:Bugs
    Replies: 1
    Last Post: 15 Jan 2012, 2:35 PM
  3. How to call the load the renderer method again ?
    By Anup Rana in forum Ext: Discussion
    Replies: 3
    Last Post: 22 Aug 2011, 8:55 PM
  4. Grid column renderer reporting wrong colIndex
    By medusadelft in forum Ext:Bugs
    Replies: 1
    Last Post: 31 Jul 2011, 5:06 AM
  5. grid.column renderer, colIndex?
    By tavm in forum Ext:Bugs
    Replies: 1
    Last Post: 11 Jul 2011, 8:21 PM

Posting Permissions

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