Pregunta

I am new into ext js I am using Ext js 4.1 for Create treeGrid Panel also we use different render function for ech column. Then How to apply CSS to Selected Row into Treepanel?

¿Fue útil?

Solución

The selected raw css class is x-grid-row-selected, which you can override:

.x-grid-row-selected {
    background-color: red;
}

Within your renderer you can apply a css class using metadata:

renderer: function( aValue, aMetaData, aRecord )
{
    aMetaData.tdCls = 'some-of-your-own';
}
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top