Solved

Conditional formatting partially working

Posted on 2013-01-07
5
363 Views
Last Modified: 2013-01-13
Hi All,

I have a web part page with a list and used conditional formatting to changed the color and font-weight.

In SP designer 2010 both color and bold font render correctly but in the browser, the bold shows but the color does not.

Any ideas why that is?

Here's the xslt:

	<xsl:attribute name="style">
			<xsl:if test="normalize-space($thisNode/@Status) = 'Complete'" ddwrt:cf_explicit="1" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime">color:Green; font-weight: bold;</xsl:if>
			
			<xsl:if test="$Collapse">display:none;</xsl:if>
		</xsl:attribute>

Open in new window

0
Comment
Question by:Isaac
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 5

Author Comment

by:Isaac
ID: 38752758
This is really weird.  The background-color works too.  It's just the showing the color of the text.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 38752804
Just a quick guess.  color names are all lowercase change Green to green and maybe we get lucky.

Cd&
0
 
LVL 5

Author Comment

by:Isaac
ID: 38752883
No luck there!
0
 
LVL 5

Accepted Solution

by:
Isaac earned 0 total points
ID: 38752927
According to this blog, it can't be done.
http://www.jrjlee.com/2011/06/conditional-formatting-of-list-views.html

The problem is that the color is getting overriden by ms-vb2.
0
 
LVL 5

Author Closing Comment

by:Isaac
ID: 38771560
Found it can't be done unless I use jQuery or something or if I apply conditioning to each column instead of the row.
0

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
These days socially coordinated efforts have turned into a critical requirement for enterprises.
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question