• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Custom Formatting

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Custom Formatting

    Sorry if this is a pretty basic question, but I'm not a JavaScript expert. I'm trying to change the background of a grid cell to a specific color identified by a field from my SQL data source The field holds the Lab values for a color and is generated from values held in my file. I want to be able to display that color in a grid cell.

    Any help would be appreciated.

    Regards,

    Ray

  • #2
    We currently don't have an easy way to change the cell color from custom formatting; however, with that said, in the next 6.2 update, you will have access to two helper methods within your custom formatter.
    • setBackgroundColor - Set the cell's background color
      • Code:
        setBackgroundColor('#03A9F4');
    • setTextColor - Set the cell's text color
      • Code:
        setTextColor('#03A9F4');

    Comment

    Working...
    X