[CLOSED] GroupHeaderTplString question

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [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
            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.

Similar Threads

  1. GroupHeaderTplString + rendering function
    By bossun in forum 2.x Help
    Replies: 0
    Last Post: Sep 25, 2013, 5:50 AM
  2. [CLOSED] GroupingSummary not displayed GroupHeaderTplString
    By tobros in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 24, 2013, 2:40 AM
  3. [CLOSED] GroupHeaderTplString show only value
    By PriceRightHTML5team in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 19, 2013, 11:45 AM
  4. [CLOSED] GroupHeaderTplString custom
    By JCarlosF in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: May 08, 2013, 2:31 PM
  5. [CLOSED] GroupHeaderTplString null values
    By JCarlosF in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 23, 2013, 3:04 PM

Posting Permissions