Rank: Advanced Member Groups: Member
Joined: 11/2/2010 Posts: 38
|
Sirs:
I try to change the backgroud color of a grid cell from the follow script function, but it didn't work, would you help me: Thanks
function endedit_handler(cell, newValue) { //Get the quantity entered by the user var quantity = parseInt(newValue); cell.backgroundColor = "Red"; return newValue.toString(); }
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, You can use this function to change a Grid cell's style at runtime: http://doc.essentialobjects.com/library/1/jsdoc.public.gridcell.overridestyle.aspxNote this changes the style of the "cell'. It does not change styles of any elements inside the cell. For example, if your cell has a textbox, then this function will not change the style of the textbox. In the future you should check the reference to find out what is available and what is not available. You can not just pull something out of your head and hope it would work. If the documentation doesn't have it, then it does not exist and will not work. Thanks!
|
Rank: Advanced Member Groups: Member
Joined: 11/2/2010 Posts: 38
|
Yes, Sir. Thanks
|
Rank: Advanced Member Groups: Member
Joined: 11/2/2010 Posts: 38
|
It's worked, thanks again, You are my sunshine !
|