Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/05/2011, 11:22
Erick21
 
Fecha de Ingreso: abril-2010
Ubicación: Lima-Peru
Mensajes: 96
Antigüedad: 14 años
Puntos: 2
Mantener Style en Grid (Extjs)

hola , tengo un grid dentro de un panel el cual tiene un stilo con css.
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:
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
                });
CSS:
Código:
<style type="text/css">
    .SinExp{
          background-color: #00FF00; color:#000000 !important;
    }
    .Cancelado{
          background-color: #FF0000; color:#000000 !important;
    }
    
</style>>
gracias de antemano.