I was able to do this using little html knowledge and a great javascript available from the pathtosharepoint website. Below are the steps that I did to achieve this.
1. Created a calculated column called "Progress Bar" and "Progress Bar 2" and then added the following formulas to each of the columns.
- Progress Bar:
=”<DIV style=’background-color:blue; width:”&([% Complete]*100)&”%;’> </DIV>”
- Progress Bar 2:
=”<DIV style=’background-color:red;’><DIV style=’background-color:LimeGreen; width:”&([% Complete]*100)&”%;’> </DIV></DIV>”
2. I downloaded a script from the pathtosharepoint site, added it to an content editor webpart on the same page as my task list. To download the code please click here
3.Once the content editor webpart is saved, you will see that the progress bar will start to show up in the columns Progress Bar and Progress Bar 2 as I have shown in the screen image above.
I also recommend my blog readers to visit http://pathtosharepoint.com , the author has really put great efforts to build and present some of the cool sharepoint custom components that are very useful in today's custom needs for Sharepoint.
I have always enjoyed working with sharepoint customizations and I am hoping that my research and these small tips help someone in Sharepoint development world.
Keep watching this space for more sharepoint development tips. Cheers to Sharepoint !!!
Another solution:
ReplyDeletehttp://www.sparqube.com/SharePoint-Status-Indicator/
It is easy to use and no code required.
I have a custom list with checkboxs in the form. Is there any way of creating a progress bar that will complete once all the checkboxes have been selected?
ReplyDelete