- 注册时间
- 2016-4-3
- 最后登录
- 1970-1-1
- 阅读权限
- 10
- 积分
- 247
- 精华
- 0
- 帖子
- 54
 
|
- 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("接受到回车了..");
}
|
|