mi problema esta cuando habro una ventana desde un button que tambien esta en el mismo panel , el grid piede todo el stilo. coloco mi codigo para cualquier ayuda.
Grid:
Código:
CSS: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;
}
},
sm: new Ext.grid.RowSelectionModel({singleSelect:true}),
bbar: new Ext.PagingToolbar({
pageSize: 8,
store: store,
displayInfo: true
}),
footer:false,
border: false,
anchor:'99%',
height:225,
columnLines:true
});
Código:
gracias de antemano. <style type="text/css">
.SinExp{
background-color: #00FF00; color:#000000 !important;
}
.Cancelado{
background-color: #FF0000; color:#000000 !important;
}
</style>>


