Jun 10, 2016, 2:05 PM
[CLOSED] GroupHeaderTplString question
I know this is fixed in ExtJS 5.1.1 and going to Ext.NET 3.2.0, but I have not upgraded yet.
You made the following suggestion in
Thread 52321 [CLOSED] Grouping grids how to get rendered group value in the group header text
You made the following suggestion in
Thread 52321 [CLOSED] Grouping grids how to get rendered group value in the group header text
var getGroupText = function (values, parent) {
var grid = parent.view.panel,
col = grid.headerCt.child(Ext.String.format("gridcolumn[dataIndex={0}]", values.groupField)),
value = values.groupValue;
if (col.renderer) {
value = col.renderer.apply(col, [value]); // You might need to pass other parameters that is used inside a Column's Renderer
}
return Ext.String.format("{0}: {1}", values.columnName, value);
};
I need to pass metadata and record parameters into my renderer, how do I retrieve the values to pass?
Last edited by fabricio.murta; Jun 16, 2016 at 4:41 AM.