Dojo IE DataGrid内联编辑 [英] Dojo IE DataGrid inline editing
问题描述
我已经启用了DataGrid中的单元格内联编辑,除了IE之外,所有浏览器都可以正常工作。
I have enabled inline editing of cells in DataGrid and it is working fine all browsers except IE.
问题是双击单元格并执行更改后单元格的值,我必须双击网格中的另一个单元格。如果我单/双击网格外,用户正在编辑的单元格仍然保持编辑模式。
The problem is that after double clicking a cell and performing changed in values of cell, I have to double click on another cell within the grid. If I single/double click outside the grid, the cell which the user was editing still remains in edit mode.
我已经覆盖了datagrid的onApplyCellEdit事件来捕获更改,提交到服务器。
I have overridden the onApplyCellEdit event of datagrid to capture changes and submit to server.
IE的开发人员工具控制台中没有javascript错误。
There is no javascript error in developer tools console of IE
任何想法或指针这个?
推荐答案
这也被添加到其他链接的问题,但也添加在这里完整。
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();
}
};
这篇关于Dojo IE DataGrid内联编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!