-
September 20th, 2013, 11:36 AM
#3
Comparing previous value with new value
Yes you are correct it helped me lot, Thank you so much.
I used like bellow
info.forEachChangedField(function(fieldName,val) {
var lastPrice = info.getChangedFieldValue(fieldName);
if (lastPrice !== null) {
var prevPrice = grid.getValue(key,fieldName);
if (!prevPrice || lastPrice > prevPrice) {
info.setAttribute(greenColor,cold,"backgroundColor ");
} else {
info.setAttribute(redColor,cold,"backgroundColor") ;
}
} else {
info.setAttribute("#000000",cold,"backgroundColor" );
}
formatDecimalField(info, fieldName);
});
It's working well.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 06:35 AM.
Bookmarks