Not coming out of inline editing in Dojo DataGrid [duplicate]

人走茶凉 提交于 2019-12-08 15:02:57

问题


Possible Duplicate:
Dojo IE DataGrid inline editing

The cells in the grid in the following jsfiddle are editable but I am :

not able to come out of the edit mode when I double click on the cell, change the value, click outside the grid.

able to come out of the edit mode when I double click on the cell, change the value, click inside the grid.

jsfiddle: http://jsfiddle.net/keemor/xDUpp/11/

Can some please fix that jsfidddle for me.


回答1:


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();
    }
};


来源:https://stackoverflow.com/questions/12524610/not-coming-out-of-inline-editing-in-dojo-datagrid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!