extjs之隔行變色和grid加載時的等待

在grid的裡配置
viewConfig : {
loadMask: new Ext.LoadMask(this,{msg:'正在加載數據…'}),
getRowClass: function(record, rowIndex, rowParams, store){
if(rowIndex%2==0){
return 'two-row';  www.aiwalls.com
}else{
return 'one-row';
}
}
}
作者:woshiyjk

You May Also Like