PDA

View Full Version : [CLOSED] GridPanel.Rows.Changing Background Color of Rows



supera
Mar 01, 2012, 1:59 PM
Hi!

I want change the background color of row in my gridPanel...
But I wish diferent colors depending on the content of first column of row.

Example:
If first column contains values between 7:00AM and 12:00AM, I wish that the background color is blue.
01:00PM to 08:00PM, red
09:00PM and 12:00PM green

Itīs possible?

Thanks for any help!

Daniil
Mar 01, 2012, 3:05 PM
Hi,

It's possible, please use the GridView GetRowClass.
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.view.Table-method-getRowClass

Here is some example:
http://examples2.ext.net/#/GridPanel/Miscellaneous/Marking_Records/

Try to edit some cell - it will become yellow.

supera
Mar 01, 2012, 5:18 PM
Hi Daniil!!!

Thanks a lot for your help!

This example http://examples2.ext.net/#/GridPanel/Miscellaneous/Marking_Records/ itīs exactly what I need!

Thanks again.