Sharepoint webpart for conditional formatting?

2020-02-15 07:05发布

问题:

Does anyone know of a Sharepoint webpart that provides conditional formatting?

For example, if I am displaying a table, I would like to be able to change the backcolor of a row if a specific numeric cell exceeds a certain value.

Of course this could easily be done in jQuery, but for political reasons I need to find a way to do it using a webpart. 3rd party commercial solutions are certainly acceptable, and likely preferred.

回答1:

Why not use the data view web part 2007, 2010 you can get from SharePoint Designer? You can set conditional formatting properties from there, or if you need more complex formatting you can edit the xsl manually.



回答2:

I'm afraid I'm going to have to shamelessly self-promote. We've got a product coming out soon that does cell and row based conditional highlighting, and may or may not have many other features that I'm not allowed to express any opinion on that aren't directly relevant to this question.

Here's the pre-release post: Pentalogic Highlighter

I wouldn't normally post such things, but your requirements are too good a match to not mention it.

Edit: I should officially make note my affiliation with the product: I helped develop it.

Edit edit: Here's the release post (since it's now actually a useful answer).



标签: sharepoint