Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Highlighted
New Member
Posts: 6
Registered: ‎03-28-2012

I need to change the color of a row in a datagrid based on the value of a field (status)

Is thre a way to change either the entire row in a datagrid or just the field to a color based on the value of that field?
For example

If the Status of the row is marked At Risk we'd like the row to be yellow.

Behind would make the row red.

Any help is appreciated.

-Chris

Highlighted
Employee
Posts: 51
Registered: ‎12-16-2011

Re: I need to change the color of a row in a datagrid based on the value of a field (status)

What data grid? Here is a Github gist for the groups list that formats a column based on it's value: https://gist.github.com/jbest84/998294d67a430f8d2f91

 

You would have to go into the SmartParts\GroupBuilder\LiveGroupViewer.ascx and change the require from         'Sage/UI/GroupListConfigurationProvider' to the module you create. You can also look under jscript\Sage\UI\Columns for examples on how we created our own column types for the dojox grid.