I want to render one column in a gridpanel based on the value in a different column in the same row, is this possible?


Here is my gridpanel, with the renderer on the value column.




<ext:GridPanel ID="grdTransactions" runat="server" StripeRows="true" StoreID="TransactionsStore"
Height="440">
<ColumnModel>
<Columns>
<ext:Column Header="TransactionID" Width="100" ColumnID="TransactionID" Hidden="true">
</ext:Column>
<ext:Column Header="TransactionTypeID" Width="100" ColumnID="TransactionTypeID" Hidden="true">
</ext:Column>
<ext:Column Header="Transaction Type" Width="100" ColumnID="TransactionType">
</ext:Column>
<ext:Column Header="Comment" Width="200" ColumnID="Comment">
</ext:Column>
<ext:Column Header="Date" Width="120" ColumnID="Date">
</ext:Column>
<ext:Column Header="Value" Width="100" ColumnID="Value">
<Renderer Fn="ValueRenderer" />
</ext:Column>
</Columns>
</ColumnModel>
</ext:GridPanel>
</Body>
</ext:Panel>

All the renderer examples I have seen then do something like this:


var ValueRenderer = function(value) {
return String.format(template, (value > 0) ? 'green' : 'red', value);}

Passing a 'value' into the function. Is there a way to reference the row of data or another column in this call?