-
March 17th, 2008, 03:09 PM
#1
How to change the highlight color in stockList demo code?
Hi all,
In StockList Demo code (file "index.html"), in function formatValues(), i don't know how to change the highlight color?
----
function formatValues(item, itemUpdate) {
...
//choose the backgroundColor
var backC = (item % 2 == 1) ? "#eeeeee" : "#ddddee";
var backH = itemUpdate.getServerValue(14);
itemUpdate.setRowAttribute(backH,backC,"backgroundColor"); --> how to re-defined backgroundColor?
//choose the "change" field stylesheet
var newChng;
if ((newChng = itemUpdate.getFormattedValue(3)) != null)
{
var hotTxtCol = (newChng.charAt(0) == '-') ? "#dd0000" : "#009900";
itemUpdate.setAttribute(3,"black",hotTxtCol,"color ");
itemUpdate.setAttribute(3,"bold","bold","fontWeigh t");
}
...
--------
Can anybody help me?
Similar Threads
-
By sharathbabuk in forum General
Replies: 8
Last Post: July 30th, 2010, 03:18 PM
-
By hungn in forum Client SDKs
Replies: 8
Last Post: March 25th, 2010, 09:02 AM
-
By Test6405 in forum Client SDKs
Replies: 1
Last Post: November 2nd, 2009, 04:55 PM
-
By CHTSENG in forum General
Replies: 29
Last Post: July 14th, 2009, 09:57 AM
-
By sarbao in forum General
Replies: 1
Last Post: April 16th, 2009, 08:59 AM
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:52 PM.
Bookmarks