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.
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.
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).
Related
I want to know is there any SharePoint native user control for year picker? I know there was another library like jQuery and other thing that do like what I want. I need SharePoint control for some localization issue.
There is no yearpicker control but you can use the SharePoint DateTimeControl for selecting dates or datetimes.
Unfortunately i think its rather hard to customize it to only select years. Therefor i would suggest to use an external lib for that or just use a dropdown with dates to select?
https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.datetimecontrol.aspx
I need to create a simple list column with the type of time and use it like a Start Time - End Time.
Recently, I found this sptimeonly and that's exactly all I really need. Unfortunately, looking at the instructions, I don't think it will work on SharePoint 2013 as it was obviously made for SharePoint 2010.
What choices do I have?
Do I need to develop some kind of custom field?
Is there any recommendation of where to start learning it? Kinda new to this platform, I'm sorry if these questions seem pretty basic.
Thanks!
I ended up using DateTime column with a default value of the Date set,
Then adding content editor webpart in the EditForm.aspx to embed css in order to hide the Date part.
I searched a lot on the web for my answer but could not find any one. I have an list with invoice and aircraft price list. The lookup works perfect i can select the aircraft type through the invoice list. I also want to be able to select if its a Platform or Hangar price. Can someone help me how i can achieve this?
Here are some screenshots
It looks like you are attempting some form of cascading drop down fields. These are supported in 2010 Enterprise edition but via the use of info path forms. This requires no code just some GUI based configuration. Unfortunately it's a little more in depth than me explaining it on here so I will provide you to a link for a blog.
Cascading drop down info path forms
Alternatively if you google around cascading drop downs there are plenty of articles involving other methods.
Cheers
Truez
I have a task list and it has a column called Due Date. So when your Due Date draws new, the row changes to the color orange, and when the Due Date is passed, then it changes to red. So it is done dynamically comparing the Current Date to Due Date.
Has anyone accomplished this kind of solution?
I'd recommend the use of SharePoint Designer to build a Data View Web Part over using JavaScript (which is reliant on being injected via a CEWP, or via the masterpage).
Here's a tutorial for creating conditional formatting rules in a DVWP, which may prove helpful.
http://blog-sharepoint.blogspot.com/2009/05/data-view-conditional-formatting-using.html
I'm just going to nod knowingly towards this post:
Sharepoint webpart for conditional formatting?
And not remention the thing I mentioned over there that I feel slightly guilty about mentioning in the first place.
You can add javascript to the target page, where loop through all rows (), looking in DueDate column and mark that rows as you wish. This is the simpliest solution I know. For achieve this you need to look to target page HTML markup.
UPD:
You didn't say what Sharepoint version you are using. There is a better solution for 2010, explore this link: http://www.sharepoint.stackexchange.com/questions/7478/highlight-row-color-based-on-field-values-in-sharepoint-2010-list-view
There are third party add-ons(sharepoint highlight rows) that allows you highlight SharePoint list rows based on field values.
How do I validate special column types, e.g. phone, e-mail etc in SharePoint 2010?
I guess I could use an ASP.NET RegularExpressionValidator but surely there must be a simpler way?
There isn't really an easier way. If you want to compare values of one column to another or if you want very basic validation you can use Column Validation, but it doesn't support regular expressions so it won't help with things like email.
You could use jQuery to do the validation, which is a bit easier than using a validator, although it only checks on the client side.
Another option if you have the Enterprise version of SharePoint is to use InfoPath to edit the list. With InfoPath you can easily add regex validation.