FineUI 官方论坛
标题:
关于可编辑表格客户端计算行合计
[打印本页]
作者:
老鱼翁
时间:
2014-2-25 17:23
标题:
关于可编辑表格客户端计算行合计
表格
<x:Grid ID="Grid1" runat="server" BoxFlex="1" ShowBorder="true" ShowHeader="false"
AllowSorting="false" SortColumnIndex="0" AutoScroll="true" DataKeyNames="Id,Name"
SortDirection="DESC" AllowPaging="false" IsDatabasePaging="false" EnableTextSelection="true" EnableMultiSelect="false" AllowCellEditing="true" ClicksToEdit="1">
<Columns>
<x:RenderField Width="45px" ColumnID="UnitQty" FieldType="Int" DataField="UnitQty"
HeaderText="数量">
<Editor>
<x:NumberBox ID="tbxEditorUnitQty" NoDecimal="true" NoNegative="true" MinValue="0" MaxValue="99999" MaxLength="5"
runat="server">
</x:NumberBox>
</Editor>
</x:RenderField>
<x:RenderField Width="45px" ColumnID="UnitPrice" FieldType="Int" DataField="UnitPrice"
HeaderText="单价">
<Editor>
<x:NumberBox ID="tbxEditorUnitPrice" NoDecimal="true" NoNegative="true" MinValue="0" MaxValue="99999" MaxLength="5"
runat="server">
</x:NumberBox>
</Editor>
</x:RenderField>
<x:RenderField Width="45px" ColumnID="Amount" FieldType="Int" DataField="Amount"
HeaderText="金额">
<Editor>
<x:NumberBox ID="tbxEditorAmount" NoDecimal="true" NoNegative="true" MinValue="0"
runat="server" Readonly="true">
</x:NumberBox>
</Editor>
</x:RenderField>
</Columns>
</x:Grid>
请教下要实现焦点离开数量或单价时,自动计算当行的金额。客户端脚本要怎么写
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4