Ext中 grid 设置行样式

//设置样式   JS
var SetRowClass = function(record, rowIndex, rowParams, store) {
if (record.data.status == "PFSTA0005" || record.data.status == "PFSTA0015") {
return 'x-grid-record-yellow';
}
}

//Body

<View>
<ext:GridView ID="GridView1" runat="server" EnableRowBody="true">
<GetRowClass Fn="SetRowClass" />
</ext:GridView>
</View>

上一篇:Mac说——关闭SIP


下一篇:Divide by three, multiply by two CodeForces - 977D (思维排序)