Jquery中LigerUi框架的GRID控件,汇总的使用实例!
2023-09-11 14:15:11 时间
{ display: "总收款金额", name: "The_Pay", width: 100, type: "text", align: "left",
validate: { required: true, digits: true },
editor: { type: 'text' } ,
totalSummary:
{
align: 'center', //汇总单元格内容对齐方式:left/center/right
type: 'sum', //汇总类型sum,max,min,avg ,count。可以同时多种类型
render: function (e)
{
//汇总渲染器,返回html加载到单元格
//e 汇总Object(包括sum,max,min,avg,count)
return "合计:" + e.sum;
}
}
validate: { required: true, digits: true },
editor: { type: 'text' } ,
totalSummary:
{
align: 'center', //汇总单元格内容对齐方式:left/center/right
type: 'sum', //汇总类型sum,max,min,avg ,count。可以同时多种类型
render: function (e)
{
//汇总渲染器,返回html加载到单元格
//e 汇总Object(包括sum,max,min,avg,count)
return "合计:" + e.sum;
}
}
} ,
============================================================================== ,
totalSummary:
{
align: 'center', //汇总单元格内容对齐方式:left/center/right
type: 'sum', //汇总类型sum,max,min,avg ,count。可以同时多种类型
render: function (e)
{
//汇总渲染器,返回html加载到单元格
//e 汇总Object(包括sum,max,min,avg,count)
return "合计:" + e.sum;
}
}
============================================================================== 【合计的小数位】
{ display: "实用金额", name: "Settlement_Amount", width: 150, type: "text", align: "left",
validate: { required: true, maxlength: 50 },
editor: { type: 'text' },
totalSummary:
{
align: 'center', //汇总单元格内容对齐方式:left/center/right
type: 'sum', //汇总类型sum,max,min,avg ,count。可以同时多种类型
render: function (e)
{
//汇总渲染器,返回html加载到单元格
//e 汇总Object(包括sum,max,min,avg,count)
// return "合计:" + (e.sum.substring(1, 10));
return "合计:" + e.sum.toFixed(2);
}
}
},
相关文章
- jQuery获取Select选择的Text和 Value(转)
- jquery如何实现自动打开第一个链接!(实例代码)
- Jquery中针对全局快捷键和文本框(回车)快捷键的用法(实例)
- Jquery的LigerUI如何实现文件上传(已解决,有实例)
- Jquery 组 checkbox全选checkbox
- 《众妙之门——JavaScript与jQuery技术精粹》——2.6 JavaScript代码复查实例
- 《jQuery Mobile入门经典》—— 1.3 开发者的宝库
- 《jQuery、jQuery UI及jQuery Mobile技巧与示例》——9.5 技巧:显示页面正在加载的信息
- 《jQuery Cookbook中文版》——1.11 删除DOM元素
- jquery中Live方法不可用,Jquery中Live方法失效
- jquery.validate.js校验select2解决方案,Jquery插件select2校验解决方案
- Nice Jquery Validator 事件
- Selenium2学习-014-WebUI自动化实战实例-012-Selenium 操作下拉列表实例-div+{js|jquery}
- 使用Jquery的$.unique去重时,注意先排序再去重
- 使用jQuery.form插件,实现完美的表单异步提交【转发】
- jQuery动画效果animate和scrollTop结合使用实例
- Jquery_JQuery之DataTables强大的表格解决方案
- 基于jquery扩展漂亮的分页控件(ajax)
- mvc配合jquery.validate验证失效,情况之一
- jquery ajax生成Select
- jquery 判断是否为空
- JQuery中阻止事件冒泡方式及其区别
- jquery经典实例之拖动面板
- jquery经典实例之图片轮播
- jquery经典实例之可拖拽的弹出层