PDA

View Full Version : changing text color in EditorGrid



salmondavid888
7 Jan 2011, 2:56 AM
Hi ,
i am using EditorGrid with LiveGridView. my requirement is if any cell is edited, that cell's text should be changed to green color. once store is committed color should be removed. plz suggest me how to do this.

Thanks!

sven
7 Jan 2011, 2:59 AM
This can be done with css. There is already a styled assigned to dirty cells and the is a forum thread even on the same page than yours that asks the same question: http://www.sencha.com/forum/showthread.php?120449-How-to-set-the-style-to-modified-records-in-grid

salmondavid888
7 Jan 2011, 3:05 AM
thanks sven. plz can u give me code snippet?

sven
7 Jan 2011, 3:16 AM
I do not have any sample code for this. Take a look at the dom layout with firebug on an edited cell. You will than see which changes are required.

salmondavid888
7 Jan 2011, 3:32 AM
thanks sven.