PDA

View Full Version : change GridPanel cell styles



eztam
9 Apr 2010, 2:44 AM
Hi,

I've got a GridPanel (local Json store) and I want to add a checkbox for highlighting the latest updated cells.

A sample store would be sth like this:


[
{
"id":1,
"title":"Testtitle",
"content":"Test content.",
"_latestupdated":[
{"field":"title","date":1269241272},
{"field":"content","date":1269241272}
]
}
]
This means the columns "title" and "content" of the grid row containing the dataset with id:1 were changed at last update.

So what do I have to do to highlight the two cells on checking a checkbox and to "unhighlight" them on unchecking the checkbox.

My problem is not the checkbox but the technique to highlight the cells.


___________EDIT_____________________________________________

I thought about iterating through the grids store and check about the "_latestupdated" array to highlight cell or not.
But how can I Access the cell with the record and the fieldname.
I don't know where to look for.
Isn't it possible to access the view element from for example record = "1" and fieldname = "title".


Thanks!