Monday, April 16, 2012

Color coding list view

I had a situation where a customer wanted different row-colors in the list view depending on certain values.
This could be solved using conditional formatting and a custom view.
To create a conditional formating on a list.
I had a situation where a customer wanted different row-colors in the list view depending on certain values.
This could be solved using conditional formatting and a custom view.
To create a conditional formating on a list.
1. Create a custom view in Sharepoint Designer
2. Create a Conditional format by marking a field, and pick it from Options ribbon.
3. Select Format Row and pick field name and choose conditions
4. In Style, choose category Background and Background-color
5. Save
image
Very handy for situations where certain conditions need to be highlighted given certain circumstances.
Referenser:
http://blogs.msdn.com/b/sharepointdesigner/archive/2007/11/09/an-introduction-to-conditional-formatting.aspx
http://davepyett.wordpress.com/2011/03/28/sharepoint-2010-list-views-formatting-tip/
http://sp365.co.uk/2011/09/sharepoint-designer-2010-conditional-formatting/
http://sharepoint.stackexchange.com/questions/20088/simple-way-to-color-code-a-column-in-a-document-library

No comments: