且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Dojo IE DataGrid内联编辑

更新时间:2023-12-04 10:26:34

这也被添加到其他链接的问题,但也添加在这里完整。

This has also been added to the other linked question but also adding here for completeness.

确定我找到了修复。看起来它的效果很好。您需要注册网格的onBlur事件,并手动调用网格上的保存。

Ok I've found the fix. It seems like it works perfectly. You need to register for the onBlur event of the grid and manually call save on your grid.

vGrid.onBlur = function(){
    var grid = dijit.byId('validation_grid');
    if (grid.edit.isEditing()){
        grid.edit.apply();
    }
};