Domanda

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?

È stato utile?

Soluzione

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';
}
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top