在Dojo DataGrid中没有出现内联编辑功能 [英] Not coming out of inline editing in Dojo DataGrid
问题描述
可能重复:
Dojo IE DataGrid内联编辑
网格中的单元格在以下jsfiddle是可编辑的,但我是:
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/
jsfiddle: http://jsfiddle.net/keemor/xDUpp/11/
有些可以修复这个jsfidddle为我。
Can some please fix that jsfidddle for me.
推荐答案
好的,我找到了修复。看起来它的效果很好。您需要注册网格的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();
}
};
这篇关于在Dojo DataGrid中没有出现内联编辑功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!