
26/05/2011, 11:46
|
| | Fecha de Ingreso: abril-2010 Ubicación: Lima-Peru
Mensajes: 96
Antigüedad: 14 años, 10 meses Puntos: 2 | |
Respuesta: Color en fila de GridPanel Gracias Aijoona, ya salio !!!! ahi dejo el codigo haber si alguien le sirve.
Código:
var GridAutorizacion= new Ext.grid.GridPanel({
id:lic_aut,
store:store,
columns:[
{header:'Nro Autorizacion.',dataIndex:'nro_autorizacion',width:80},
{header:'Fecha Inicio Evento',dataIndex:'Fecha_Inicio',width:90},
{header:'Fecha Fin Evento',dataIndex:'Fecha_Fin',width:90},
{header:'Nombre Establecimiento',dataIndex:'vnomEstablecimiento',width:200},
{header:'Observacion',dataIndex:'vobservacion',width:80},
{header:'Fecha de Tramite',dataIndex:'Fecha_Tramite',width:90},
{header:'Expediente',dataIndex:'nro_expediente',width:80},
{header:'ESTADO DE IMPRESION',dataIndex:'IMPRESION',width:130}
],
stripeRows:true,
viewConfig:{
getRowClass : function (row, index) {
var cls = '';
if(row.get('IMPRESION') == 'NO IMPRESO' ){
cls = 'SinExp';
}else{
cls = 'Cancelado';
}
return cls;
}
},
<style type="text/css">
.SinExp{
background-color: #00FF00 !important;
}
.Cancelado{
background-color: #FF0000 !important;
}
</style>>
|