1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
$( function () {
$( '#tt' ).datagrid({
singleSelect: false ,
url: '/uploads/rs/233/bkf2ntm7/datagrid_data2.json' ,
title: 'Easyui datagrid 行上下移动' ,
width: 800,
height: 'auto' ,
fitColumns: true ,
columns: [[{
field: 'itemid' ,
title: 'Item ID' ,
width: 80
},
{
field: 'productid' ,
title: 'Product ID' ,
width: 120
},
{
field: 'listprice' ,
title: 'List Price' ,
width: 80,
align: 'right'
},
{
field: 'unitcost' ,
title: 'Unit Cost' ,
width: 80,
align: 'right'
},
{
field: 'attr1' ,
title: 'Attribute' ,
width: 250
},
{
field: 'status' ,
title: 'Status' ,
width: 60,
align: 'center'
},
{
field: 'ctr' ,
title: '操作' ,
width: 100,
align: 'center' ,
formatter: function () {
return '<button onclick="move(event,this,true)">上</button><button onclick="move(event,this,false)">下</button>' ;
}
}]]
});
}); function move(e, target, isUp) {
var $view = $(target).closest( 'div.datagrid-view' );
var index = $(target).closest( 'tr.datagrid-row' ).attr( 'datagrid-row-index' );
var $row = $view.find( 'tr[datagrid-row-index=' + index + ']' );
if (isUp) {
$row.each( function () {
$( this ).prev().before($( this ));
});
} else {
$row.each( function () {
$( this ).before($( this ).next());
});
}
$row.removeClass( 'datagrid-row-over' );
e.stopPropagation();
} |
- 浏览: 101981 次
- 性别:
- 来自: 郑州
最新评论
-
hy2012_campus:
总结的不错,顶一个
kaptcha 验证码组件结合springMVC示例 -
lirenhai2008:
感谢了。
PLSQL注册码,绝对能用!
相关推荐
jQuery EasyUI Datagrid 用户列表鼠标悬停/离开数据行时显示人员头像(onMouseOver/onMouseOut) Demo 扩展 jQuery EasyUI Datagrid 数据行鼠标悬停离开事件,源码奉献!!!
jquery easyui demo 网页下载下来打包了,还有datagrid简要说明
本文给大家分享jQuery EasyUI编辑DataGrid用combobox实现多级联动效果的实例代码,代码简单易懂,非常不错,具有参考借鉴价值,感兴趣的朋友一起看看吧
easyui datagrid中实现上下左右、回车切换单元格easyui datagrid中实现上下左右、回车切换单元格easyui datagrid中实现上下左右、回车切换单元格
jquery easyui datagrid 性能优化,优化后可快速提升查询性能。唯一的缺陷就是不支持可编辑grid了。只需要在引入easyui.js后面引入此js即可。
jquery easyui datagrid demo 详解 增删改查
jqueryEasyUI中的dataGrid实现的表格的增删改查,后台使用servlet,有数据库源码
easyUI datagrid 行上移,下移,置顶,置底的方法
jquery easyui datagrid 教程的部分应用。
两种方法将easyui datagrid 中的数据导出到Excel中,均以验证可以正常使用
JQuery EasyUI DataGrid服务端分页加载数据后,DataGrid行号不能延续,总是重新由1开始。因为服务端分页取回的是单页数据,通过LoadData方法加载数据后,pageNumber属性被初始化为1,因此行号总是重新由1开始。现在...
在easy ui datagrid 列表基础上实现行过滤[行模糊查询],注:数据库远程查询
jquery easyui 扩展 datagrid 自定义动态隐藏显示列
JS EasyUI DataGrid动态加载数据
主要介绍了jquery easyui datagrid实现增加,修改,删除方法,结合实例形式分析了jquery easyui datagrid结合asp.net实现数据的增删改等操作的步骤与相关技巧,需要的朋友可以参考下
EasyUI DataGrid过滤用法实例
easyui datagrid editor回车切换单元格示例,适合熟悉easyui但又不懂如何做的人员,可能参考一下源码JS。
easyUI datagrid 自动调整行号大小
主要介绍了jQuery Easyui DataGrid点击某个单元格即进入编辑状态焦点移开后保存数据的相关资料,非常不错,具有参考借鉴价值,需要的朋友可以参考下
在Easyui的1.3.3版本中,作者新增了tooltip组件,尽管样式看起来也...之前我写过一篇《扩展:datagrid鼠标经过提示单元格内容》那就是用纯编码生成的tip,更为丑陋,有了Easyui 1.3.3的tooltip,我们实现起来就很容易了