jQuery MiniUI
标题:
datagrid的回车键 真是无法生效
[打印本页]
作者:
gaide168
时间:
2016-4-14 21:35:31
标题:
datagrid的回车键 真是无法生效
var grid = new mini.DataGrid();
var columnList = new Array();
var editor = { type: "Spinner" ,allowLimitValue:false,changeOnMousewheel:false };
columnList.push({ field:"GroupName", width: 120, headerAlign: "center", header: "", editor: { type: "textbox" } ,readOnly:true});
columnList.push({ field:"MinBet", width: 120, headerAlign: "center", header: "单注最低", editor: editor });
columnList.push({ field:"MaxBet", width: 120, headerAlign: "center", header: "单注最高", editor: editor });
columnList.push({ field:"SumMaxBet", width: 120, headerAlign: "center", header: "单项最高", editor: editor });
columnList.push({ field:"TuiShui_A", width: 120, headerAlign: "center", header: "A盘(%)", editor: editor });
columnList.push({ field:"TuiShui_B", width: 120, headerAlign: "center", header: "B盘(%)", editor: editor });
columnList.push({ field:"TuiShui_C", width: 120, headerAlign: "center", header: "C盘(%)", editor: editor });
grid.set({id:"gameGrid_"+gameId,showPager:false, allowCellValid:true, allowCellSelect:true,allowCellEdit:true,columns:columnList});
grid.on("cellendedit",inputValueEv);
grid.on("cellvalidation",validaEv);
grid.on("celleditenter",enterEv);
复制代码
我创建datagrid的过程就是这个..然后添加到 Panel 中...可以看到我想触发 enterEv 事件..但无论怎样就是不起作用
function enterEv(e)
{
console.log("接受到回车了..");
}
作者:
felt
时间:
2016-4-15 09:28:15
请设置 editNextOnEnterKey="true"允许回车切换
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2