Solved

Conditional formatting partially working

Posted on 2013-01-07
5
357 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Fix a css menu for width 15 33
SharePoint Form with repeating section 2 26
How to share an InfoPath Form on-line 2 22
boostsrap 1 12
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

730 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