May 05, 2011, 3:28 PM
GridPanel - JS summaryrenderer accessing record data
Hello,
I am wanting to combine the value from several fields to make up one of the columns in the Group sumnary of a gridpanel.
I have created a JS function but I am not sure on how I extract the values from the data parameter:
e.g.
I am calling the function using <SummaryRenderer fn="TollGateRenderer" /> as part of the GroupingSummaryColumn.
any help would be appreciated.
thanks
I am wanting to combine the value from several fields to make up one of the columns in the Group sumnary of a gridpanel.
I have created a JS function but I am not sure on how I extract the values from the data parameter:
e.g.
var TollGateRenderer = function (v, params, data) {
var l = 'Tollgate ' + <fieldvalue1> + 'some text' + <fieldvalue2>;
return l;
};
<fieldvalue1> and <fieldvalue2> are where I would like to extract a field value from the 'data' parameter, but I have not been able to work out the correct way to do these.I am calling the function using <SummaryRenderer fn="TollGateRenderer" /> as part of the GroupingSummaryColumn.
any help would be appreciated.
thanks