Archive for August, 2013

Set background color for Grid column in ExtJS4

August 6th, 2013 1 comment

If you need a specific grid column set to a different color, for example. red, you can do the following:

  • In the column settings for a given column add the attribute tdCls:’cell-red’ where the cell-red is CSS class and then
  • In the CSS file where the styles for your application (be sure the CSS load after extjs-all.css) add the following line:
    .cell-red	.x-grid-cell-inner	{ background-color:#ffe0e0; } 

If necessary, you can further modify column style.