jquery easyui datagrid 合并单元格 多级合并如何实现?

小将冯 2015-12-04 03:23:46
想实现的效果如图:(excel做了一个简单的图,大家凑合看看吧)




目前我只实现了单级的合并单元格和复选框列的合并,实现了动态添加列和删除首列,而且如果有合并行数据,新添加的动态列没有自动合并!

各位大拿,easyui的datagrid中如何实现这样的合并呢?
...全文
1364 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
江小鱼NO1 2015-12-19
  • 打赏
  • 举报
回复
可以看我写的文章:http://blog.csdn.net/abc20072349/article/details/44407411
小将冯 2015-12-18
  • 打赏
  • 举报
回复
没有人来顶帖了么?自己给自己顶一个,目前还没有解决,大拿们!
  • 打赏
  • 举报
回复
自己调用datagrid的api mergeCells进行合并 mergeCells options Merge some cells to one cell, the options contains following properties: index: the row index. type: the row type, possible values are 'body','footer'. field: the field name. rowspan: the rowspan count to be merged. colspan: the colspan count to be merged. Code example:
// merge the footer rows
$('#dg').datagrid('mergeCells', {
	index: 1,
	field: 'name',
	colspan: 2,
	type: 'footer'
});

87,997

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧