How can I add a particular column that is selected via java-script? I'm using ext.net.
<script>
var sumCheck= function () {
var resultSum;
/* todo loop selectedrows
resultSum += column(field_value); */;
alert(resultSum);
};
</script>
<ext:GridPanel runat="server" ID="grid1" Height="250px" Frame="true" StoreID="dsGrid1">
<ColumnModel runat="server">
<Columns>
<ext:NumberColumn runat="server" DataIndex="field_value" Format=",0.00" Align="Right"/>
</Columns>
</ColumnModel>
<SelectionModel>
<ext:CheckboxSelectionModel runat="server" Mode="Multi">
<Listeners>
<SelectionChange Fn="sumCheck()" />
</Listeners>
</ext:CheckboxSelectionModel>
</SelectionModel>
</ext:GridPanel>
Thanks to anyone who can help me.