ExtJS 使用点滴 七 如何设置EditorGridPannel 中特定行的背景

 
 
.child-row .x-grid-cell { 
    background-color: #ffe2e2; 
    color: #900

 
.adult-row .x-grid-cell { 
    background-color: #e2ffe2; 
    color: #090
}
//==============================================
 viewConfig: {
        getRowClass: function(record, index) {
            var c = record.get('change');
            if (c < 0) {
                return 'price-fall';
            } else if (c > 0) {
                return 'price-rise';
            }
        }
    }
posted @ 2012-09-15 22:26  FredTang  Views(206)  Comments(0Edit  收藏  举报