1. #1
    Ext User
    Join Date
    May 2008
    Posts
    1
    Vote Rating
    0
    leons1220 is on a distinguished road

      0  

    Question how to use arguments of summaryRenderer method?

    how to use arguments of summaryRenderer method?


    hey,guys! I use Ext.grid.GroupSummary class in my page,like below:
    columns: [
    {id:'product',
    name:'product',
    header:"Product",
    width:60,
    dataIndex:'product',
    renderer:productName,
    summaryType:'count',
    summaryRenderer: function(v, params, data){return "<div style='font-family: Arial, Helvetica,sans-serif;font-size: 12px;color: #FFFFFF;background-color: #DC241F;'>Total</div>";}}

    and now,I want to get record datas in function(v, params, data) method by using params and data arguments,I know that the first arguments "v" is return the value of each row,then how to use the second argument "params" and the third argument "data",what do they return ?

  2. #2
    Ext User
    Join Date
    Jul 2007
    Posts
    3,128
    Vote Rating
    1
    devnull is an unknown quantity at this point

      -2  

    Default


    Inspect them in firebug.

Thread Participants: 1