Ext中怎么让grid控件中指定谋行数据让它变成灰色,不可用的状态 grid控件从后台读取数据,根据后台数据显示数据集,有的数据行前面的checkbox默认被勾选,我现在现实现的是,被勾选的数据行变为灰色不可用的状态。怎么实现????????? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 重写一下Ext.override(Ext.grid.RowSelectionModel, { selectRow: function(index, keepExisting, preventViewNotify) { if (this.isLocked() || (index < 0 || index >= this.grid.store.getCount()) || (keepExisting && this.isSelected(index)) || (Number(this.grid.store.getAt(index).get("Flag")) === 0)) {//给一个标识来确定哪一行不能选择 return; } var r = this.grid.store.getAt(index); if (r && this.fireEvent('beforerowselect', this, index, keepExisting, r) !== false) { if (!keepExisting || this.singleSelect) { this.clearSelections(); } this.selections.add(r); this.last = this.lastActive = index; if (!preventViewNotify) { this.grid.getView().onRowSelect(index); } this.fireEvent('rowselect', this, index, r); this.fireEvent('selectionchange', this); } }}); 关于javascript设置cookie的几个问题求教大牛 问一个jquery的小问题 大家喜欢用javascript还是jquery??? IE7下 iframe 页面加载是空白 关于点击连接改变背景颜色 语法错误 添加问题成功 关于数据类型判断的问题 求问,如何动态控制框架集滚动条 求助 怎么禁止查看网页的源码&另存 高分求助(取IE地址欄的URL 和 產生隨機數的算法函數) 关于梅花雪大侠树的问题,请大家帮帮忙啊 Extjs中怎么修改进度条控件的图片
selectRow: function(index, keepExisting, preventViewNotify) {
if (this.isLocked() || (index < 0 || index >= this.grid.store.getCount()) || (keepExisting && this.isSelected(index)) || (Number(this.grid.store.getAt(index).get("Flag")) === 0)) {//给一个标识来确定哪一行不能选择
return;
}
var r = this.grid.store.getAt(index);
if (r && this.fireEvent('beforerowselect', this, index, keepExisting, r) !== false) {
if (!keepExisting || this.singleSelect) {
this.clearSelections();
}
this.selections.add(r);
this.last = this.lastActive = index;
if (!preventViewNotify) {
this.grid.getView().onRowSelect(index);
}
this.fireEvent('rowselect', this, index, r);
this.fireEvent('selectionchange', this);
} }
});