我使用树& treegrid查询插件:http://www.jeasyui.com/demo/index.php 我想拖动n拖放当前存在的功能,但问题是我想复制节点,而不是移动它。 另外我想编辑treegrid节点双击&保存在ENTER上。我能够编辑dbl点击节点,但是dnt knw如何捕获ENTER事件!下面 是,我有编辑节点实现代码:jquery easyui树拖放&输入
<table id="bomSubTree" style="width:600px;height:300px"> </table>
.......
$('#bomSubTree').treegrid({
height: 550,
//width:600,
dnd: true,
method: 'get',
treeField: 'text',
idField: "oid",
pagination: "true",
fitColumns: "true",
url: '/product_configurator/populate_sub_tree.json',
columns: [
[{
field: 'quantity',
title: 'Quantity',
width: 100,
editor: "numberbox",
align: "right"
}
]
],
frozenColumns: [
[{
title: 'Name',
field: 'text',
width: 500
}]
],
onDblClickRow: function (row) {
$(this).treegrid('beginEdit', row.oid);
}
});`
能ANY1请帮助我!?
您可以通过keycode值13捕获Enter事件.. – 2012-03-02 06:22:30
thnx that .. – Shruti 2012-03-20 07:55:52
嗨,@Shruti欢迎。 :) – 2012-03-20 10:05:17