Welcome Guest Search | Active Topics | Sign In | Register

Formatting Cell Style in Grid Options
GaryBrowning
Posted: Friday, February 15, 2013 12:46:44 PM
Rank: Member
Groups: Member

Joined: 6/1/2011
Posts: 18
I have a grid control that I have the first column filled in with pre-defined values when the page loads. I'd like to change the style of cells in this first column based on criteria. I've done conditional formatting before use SQL statements and a item style set but not formatting a cell that is not not linked to any data field.

How do I go about changing the cell background to a specific color if it matches some criteria?
eo_support
Posted: Friday, February 15, 2013 1:08:20 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

There are two ways to change a GridCell's background. Either through GridColumn.StyleFieldId to evaluate a css class for the cell based on the value of the StyleField, or call this method on the client side directly:

http://www.essentialobjects.com/doc/1/jsdoc.public.gridcell.overridestyle.aspx

With the second method, you can apply any style to the GridCell.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.