我有一個包含多個列的表單,其中一個是複選框,它發送兩個表單提交,然後單擊該複選框本身並導致數據庫鎖定。複選框(dojox.grid.cells.Bool)提交兩次
的index.jsp:
var gridLayout = [
...
{name:"Recurring", field:"isRecurring", type: dojox.grid.cells.Bool, width: "50px",editable:true}
...
]
var grid = new dojox.grid.DataGrid({
id: 'grid',
store: myStore ,
structure: gridLayout
});
dojo.connect(grid, 'onApplyCellEdit', function (a,index,c) { submit(index) });
是否有到 'onApplyCellEdit' 的方法嗎?