http://www.jeasyui.com/easyui/datagrid-detailview.js
前提一定要引入:datagrid-detailview.js
主要是三个属性和普通的datgagrid的属性不同
view: detailview, //DataGird view必须设置的一个属性
detailFormatter: function (index, row) {}
onExpandRow: function (index, row) {//在展开行的时候触发。}
 $('#billlist_PaidUse').datagrid({
method: 'post',
url: 'FinancialAuditService.ashx?Method=GetBillList_PaidUse&ContractGuid=' + $("#contractid").val(),
loadMsg: '正在加载数据...',
fitColumns: true, ////为了冻结列!这里一定要设置为false
singleSelect: true,
showFooter: false, //这里 默认隐藏了页脚************
view: detailview, //DataGird view必须设置的一个属性
detailFormatter: function (index, row) {
var str = '<div style="margin:5px 5px 5px 5px;"><table id="ReceiptGrid_' + index + '"></table><div>'; //收款的列表
return str;
},
onExpandRow: function (index, row) {//在展开行的时候触发。
//这里加载 展开的datagrid, id是ReceiptGrid_+index
//记载完成里面的gird以后记得 重新修复下 当前父grid的高度
$("#billlist_PaidUse").datagrid("fixDetailRowHeight", index);
},
columns: [[
{ title: '唯一guid', field: 'Year', width: , hidden: true },
{ title: '年份', field: 'YearTitle', width: , align: 'center' },
{ title: '应收金额', field: 'Receivable', width: , align: 'right' },
{ title: '已收金额', field: 'Paid', width: , align: "right" },
{ title: '欠收金额', field: 'Arrears', width: , align: 'right' },
{ title: '有效期限', field: 'TimeLimits', width: }
]],
toolbar: '#tbBillToolPaidUse', // id 为tb的Div 详细 查看前台页面HTML代码
onBeforeLoad: function () {
$(this).datagrid('rejectChanges');
},
onClickRow: function (rowIndex, rowData) {
},
onDblClickRow: function (rowIndex, rowData) {
},
onLoadSuccess: function (data) {
}
});
关键的字已经 加粗。。。。。。。

												

EasyUI DataGrid View的更多相关文章

  1. easyUI datagrid view扩展

    //扩展easyuidatagrid无数据时显示界面 var emptyView = $.extend({}, $.fn.datagrid.defaults.view, { onAfterRender ...

  2. easyui 的 DataGrid View 使用

    easyui真是后台人员的宝呀,让不会前台的程序员,不用再用那些自己看着都恶心的表格了! 今天来说说easyui datagrid 的 数据表格详细展示表格,这个有趣多了! 先上图 然后是代码 $(' ...

  3. JQuery easyUI DataGrid 创建复杂列表头(译)

    » Create column groups in DataGrid The easyui DataGrid has ability to group columns, as the followin ...

  4. 构建ASP.NET MVC4+EF5+EasyUI+Unity2.x注入的后台管理系统(8)-MVC与EasyUI DataGrid 分页

    系列目录 前言 为了符合后面更新后的重构系统,文章于2016-11-1日重写 EasyUI Datagrid在加载的时候会提交一些分页的信息到后台,我们需要根据这些信息来进行数据分页再次返回到前台 实 ...

  5. 初识 easyui datagrid

    首先应该下载好easyui datagrid所用的各种js 和css 这个可以到官网上去下载. 首先要引入datagrid所引入的js和css. <script src="js/jqu ...

  6. jquery easyui datagrid使用参考

    jquery easyui datagrid使用参考   创建datagrid 在页面上添加一个div或table标签,然后用jquery获取这个标签,并初始化一个datagrid.代码如下: 页面上 ...

  7. 对easyui datagrid组件的一个小改进

    #对easyui datagrid组件的一个小改进 ##问题 在实际项目中使用datagrid时,受版面限制,有时候表格不能太大,这时候表格里面的内容就不能完全显示,用户需要经常拖动调整列宽才能看完整 ...

  8. [转载]easyui datagrid 时间格化(JS 日期时间本地化显示)

    easyui datagrid 日期时间显示不正常,后台java 类型为 DATE 经过JSON工具一转化传到前台来就是这样,不便 于是想格式化一下, 格式化代码 如下: [javascript] v ...

  9. 反射实体自动生成EasyUi DataGrid模板 第二版--附项目源码

    之前写过一篇文章,地址 http://www.cnblogs.com/Bond/p/3469798.html   大概说了下怎么通过反射来自动生成对应EasyUi datagrid的模板,然后贴了很多 ...

随机推荐

  1. 502 Proxy Error The proxy server received an invalid response from an upstream server

    Proxy Error The proxy server received an invalid response from an upstream server. The proxy server ...

  2. Java开发中经典的小实例-(if(参数){}else{})

    import java.util.Scanner; public class Calculate {    public static void main(String[] args) {       ...

  3. Timeout expired超时时间已到. 达到了最大池大小 错误及Max Pool Size设置

    此文章非原创,仅为分享.学习!!! 参考数据库链接串: <add key="data" value="server=192.168.1.123; port=3306 ...

  4. ServiceStack.OrmLite 笔记2 -增

    ServiceStack.OrmLite 笔记2 这篇主要介绍 增加 db.Insert(new Employee { Id = 1, Name = "Employee 1" }) ...

  5. hdu 2112 (最短路+map)

    链接:http://acm.hdu.edu.cn/showproblem.php?pid=2112 HDU Today Time Limit: 15000/5000 MS (Java/Others)  ...

  6. HDU 3549 Flow Problem(最大流)

    HDU 3549 Flow Problem(最大流) Time Limit: 5000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/ ...

  7. 《Linux内核设计的艺术》学习笔记(二)INT 0x13中断

    参考资料: 1. <IBM-PC汇编语言程序设计> 2. http://blog.sina.com.cn/s/blog_5028978101008wk2.html 3. http://ww ...

  8. 关于HTML5与移动开发

    OSChina API列表: android api:http://tool.oschina.net/apidocs AppCan移动开发平台:http://doc.appcan.cn/#!/guid ...

  9. nyoj 1058部分和问题(DFS)

    部分和问题 时间限制:1000 ms  |  内存限制:65535 KB 难度:2   描述 给定整数a1.a2........an,判断是否可以从中选出若干数,使它们的和恰好为K.   输入 首先, ...

  10. LTE Module User Documentation(翻译6)——物理误差模型、MIMO模型、天线模型

    LTE用户文档 (如有不当的地方,欢迎指正!) 9 PHY Error Model   物理误差模型包含数据误差模型和下行控制误差模型,两者默认为激活.可以使用 ns-3 属性系统去激活,具体为:   ...