PDA

View Full Version : [CLOSED] CSS property for grid cell



gets_gui
Apr 11, 2012, 3:03 PM
Hi,

I have a css class:

.color1 {
background : #CCFFFF;
}
Which Cls property I should use for cell background in 2.0? It tried CellCls, Cls etc.

Here is the code I have in 1.3.


<ext:Column runat="server" Header="Name" Width="40" DataIndex="name" Css="background-color: #CCFFFF;"/>

Thanks.

Daniil
Apr 11, 2012, 6:48 PM
Hi,

Please use the TdCls property.

Example

<style type="text/css">
.column-1 div {
background-color: red;
}
</style>

<ext:Column
runat="server"
Text="Test"
DataIndex="test"
TdCls="column-1" />