Results 1 to 2 of 2

Thread: how to use arguments of summaryRenderer method?

  1. #1
    Ext User
    Join Date
    May 2008
    Posts
    1
    Vote Rating
    0
      0  

    Question 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
    3
      -3  

    Default

    Inspect them in firebug.

Posting Permissions

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