这段话是从法语翻译过来的。
我真的卡住了。我在应用程序中遇到的问题如下:
我目前正在开发一个实现Ext。我想禁用分组网格中的行。我使用Ext.Fly函数(() getNodes grid.getView ()索引存储。)掩码()。;
除了当我的内门中的组被关闭(折叠)时。null该语句返回错误(Ext.fly为Ext.fly )。
我想知道除了Ext.fly之外,是否有其他方法可以禁用分组网格中的行。
提前感谢您的答复。
发布于 2014-08-25 22:24:37
如果有帮助,请尝试使用grid beforeselect事件禁用选择,查看getRowClass方法以设置行的样式。
viewConfig: {
getRowClass: function (record, index) {
// disabled-row - custom css class for disabled (you must declare it)
if (record.get('name') == disabled_name) return 'disabled-row';
}
},
listeners: {
beforeselect: function (sm, record) {
if (record.get('name') == disabled_name) return false;
}
},
希望这对你有帮助。下面的链接可能对你也有帮助,http://www.sencha.com/forum/showthread.php?208836-Gridpanel-Row-Disable
https://stackoverflow.com/questions/25485874
复制相似问题