PDA

View Full Version : How can i highlight updated data in grid panel ?



tears
1 Dec 2010, 1:05 AM
hello i am using ext grid panel. can i highlight changed value?

Animal
1 Dec 2010, 1:17 AM
GridPanel only exists in ExtJs. Please post in the correct forum.

GridPanel already does highlight changed fields in records.

tears
1 Dec 2010, 1:29 AM
i'am sorry "Animal",

when i say highlight i mean how can i change, changed value background color ?

by the way i am using grid refresh



// Refresh
var mainquoterefresh = {
run: function(){
store.load();
},
interval: 10000
}


like attached image,

23610

thank you for reply

Animal
1 Dec 2010, 2:22 AM
Try a Column renderer

tears
1 Dec 2010, 3:36 AM
// Changed value bg
function change(val){
if(val > MYOLDVALUE){
return '<span style="background-color:green;">' + val + '</span>';
}else if(val < 0){
return '<span style="background-color:red;">' + val + '</span>';
}
return val;
}
everything ok, but how can i get MYOLDVALUE before refresh?

maybe i can use session for each data...


Thank you