![](/img/trans.png)
[英]How to change value of “disableSelection” of a grid in Ext js 4.0 dynamically?
[英]How to call a function on when a grid is resized in Ext js 4.0?
在Ext js 4.0中調整網格大小時如何調用函數?
我正在嘗試類似的方法,但是它沒有用。
Ext.define('App.view.EDM.DataModelling.Entity.entitySymbol' ,{
extend: 'Ext.grid.Panel',
alias : 'widget.entitySymbol',
title:'Entity',
ddGroup : 'GridDDGroup',
hideHeaders : true,
stripeRows : false,
resizable : {
resize : function(e ) {
alert("hi1");
},
resizedrag : function(e ) {
alert("hi2");
},
beforeresize : function(e ) {
alert("hi3");
}
},
floating:true,
draggable : true,
loadMask : true,
height: 180,
width: 160
});
這些都不起作用。
您應該添加一個監聽器以調整事件大小
...
stripeRows : false,
listeners:{
resize: function(this, width, height, oldWidth, oldHeight, eOpts){
alert("hi4");
}
},
...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.