• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 368
  • Last Modified:

Conditional formatting partially working

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>

Open in new window

  • 4
1 Solution
IsaacSharePoint Client Side DeveloperAuthor Commented:
This is really weird.  The background-color works too.  It's just the showing the color of the text.
Just a quick guess.  color names are all lowercase change Green to green and maybe we get lucky.

IsaacSharePoint Client Side DeveloperAuthor Commented:
No luck there!
IsaacSharePoint Client Side DeveloperAuthor Commented:
According to this blog, it can't be done.

The problem is that the color is getting overriden by ms-vb2.
IsaacSharePoint Client Side DeveloperAuthor Commented:
Found it can't be done unless I use jQuery or something or if I apply conditioning to each column instead of the row.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now