Feb 20, 2009, 5:11 PM
[CLOSED] GridPanel: modify cell-content from listener (script)
Hi everybody,
is there a way to modify the content of a cell (through a listener) when an other cell in the same row has been modified?
For example:
I have 3 columns: 'unit price', 'amount' and 'sum'.
If the user edits the data in the 'amount' column, I have to set the 'sum' in the same row to 'unit price' * 'amount'.
I've tried this code, but I don't know how to set the 'sum' or 'sumText' value:
...
<ext:Column DataIndex="amount" Header="amount">
<Editor>
<ext:TextField ID="amountText" runat="server" >
<Listeners>
<Change Handler="????" />
</Listeners>
</ext:TextField>
</Editor>
</ext:Column>
<ext:Column DataIndex="sum" Header="sum">
<Editor>
<ext:TextField ID="sumText" runat="server" />
</Editor>
</ext:Column>
...
Please help...Thanks,
Andy