Thank you for reporting this bug. We will make it our priority to review this report.
-
Sencha Premium User
Bug colIndex in renderer method
Ext version tested:
Browser versions tested against:
- 54.0.2840.99
- Google Chrome
DOCTYPE tested against:
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
-
Sencha User
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