客户端实现在UltraWebGrid中对某行数据进行自动计算
2008-01-02 21:21
656 查看
function UltraWebGrid1_AfterCellUpdate(gridName, cellId){
//Add code to handle your event here.
var oRow=igtbl_getActiveRow(gridName);
var col = igtbl_getColumnById(cellId)
if (col.Key=="Quantity"||col.Key=="Price"||col.Key=="TaxRate")
{
Quantity = oRow.getCellFromKey("Quantity").getValue();
Price = oRow.getCellFromKey("Price").getValue();
TaxRate = oRow.getCellFromKey("TaxRate").getValue();
if (Quantity==null) Quantity = 0;
if (Price==null) Price = 0;
if (TaxRate==null) TaxRate = 0 ;
oRow.getCellFromKey("Amount").setValue(Quantity*Price*(100+TaxRate)/100);
}
}// -->
//Add code to handle your event here.
var oRow=igtbl_getActiveRow(gridName);
var col = igtbl_getColumnById(cellId)
if (col.Key=="Quantity"||col.Key=="Price"||col.Key=="TaxRate")
{
Quantity = oRow.getCellFromKey("Quantity").getValue();
Price = oRow.getCellFromKey("Price").getValue();
TaxRate = oRow.getCellFromKey("TaxRate").getValue();
if (Quantity==null) Quantity = 0;
if (Price==null) Price = 0;
if (TaxRate==null) TaxRate = 0 ;
oRow.getCellFromKey("Amount").setValue(Quantity*Price*(100+TaxRate)/100);
}
}// -->
相关文章推荐
- 在客户端删除UltraWebGrid的所有行
- 通达OA智能开发平台CRM系统 实现数据的自动计算
- UltraWebGrid的客户端放弃PostBack功能!
- 从Infragistics UltraWebGrid 导出数据到Excel再续
- UltraWebGrid客户端脚本事件
- 使用UltraWebGridExcelExporter控件导出分页Grid所有数据的简单解决办法
- 前台获得UltraWebGrid修改过数据的单元格集合
- c#根据公式进行自动计算的实现
- 在客户端阻止删除UltraWebGrid中的行
- 客户端为UltraWebGrid增加新行
- 在UltraWebGrid中验证填入数据
- 【JavaScript】实现将从Excel中复制的数据粘贴到WEB页面Grid中
- 从Infragistics UltraWebGrid 导出数据到Excel
- COMET服务器推技术 – 实现Web服务器“主动”向客户端发送数据
- 在客户端使用javascript遍历Infragistics NetAdvantage UltraWebGrid中每个单元格的内容
- 关于Infragistics UltraWebGrid 单元格自动换行的问题
- UltraWebGrid多表头的实现
- 从Infragistics UltraWebGrid 导出数据到 Excel 序列
- UltraWebGrid的客户端放弃PostBack功能
- Silverlight中动态数据验证和动态自动计算的Reflection反射实现