![](/img/trans.png)
[英]ExtJS 4 Cannot render values in combo inside grid (cell editor plugin)
[英]ExtJS grid with feature.Grouping and editing plugin.cellediting that has combo or tagfield will not close editor when click on groups
我正在使用帶有“cellediting”插件和“分組”功能的 Ext.grid.Panel。 我的編輯器是一個標簽域。 我開始編輯該字段,然后在關閉選擇列表(邊界列表)之前單擊組標題(以觸發模糊事件)
Sencha Fiddle 直播預覽: https://fiddle.sencha.com/#view/editor&fiddle/3ll2
我當前的修復:
Ext.define("Ext.fix.grid.feature.Grouping", {
override: 'Ext.grid.feature.Grouping',
afterViewRender: function(view) {
// without callParent the problem is not reproduced,
// but colapse/expand is not working
this.callParent(arguments);
if (view.editingPlugin) {
view.on({
beforegroupclick: function(grid) {
view.editingPlugin.completeEdit();
}
})
}
}
});
問題似乎是在分組時焦點不會丟失在標簽字段上。 試試這個解決方法:在你的網格中添加一個監聽器:
listeners: {
groupclick: function (vw, node, group, e, opts) {
this.focus();
}
}
這將移除標記域上的焦點並強制它折疊。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.