Blue Theme Orange Theme Green Theme Red Theme
 
DevExpress Free UI Controls
Home | Forums | Videos | Advertise | Certifications | Downloads | Blogs | Interviews | Jobs | Beginners | Training
 | Consulting  
Submit an Article Submit a Blog 
 Jump to
Skip Navigation Links
TechnologyExpand Technology
WebsiteExpand Website
6 Months Free & No Setup Fees ASP.NET Hosting!
Search :       Advanced Search »
Home » SharePoint » Conditional formatting in Sharepoint List using Sharepoint Designer 2007

Conditional formatting in Sharepoint List using Sharepoint Designer 2007

Here I am showing how to use sharepoint designer 2007 to do conditional formatting.

Author Rank :
Page Views : 6985
Downloads : 0
Rating :
 Rate it
Level : Beginner
   Print Read/Post comments Post a comment  Similar Articles  
   Email to a friend  Bookmark  Author's other articles  
 
DevExpress Free UI Controls
Become a Sponsor
 Tag Cloud
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 


Here I am showing how to use sharepoint designer 2007 to do conditional formatting. There may be situations where you want to show Red Signal to some values in a list if it is less than a specific value.

Here I am taking the example, BPI (Type is number) be a column in a list .If the value of BPI greater than or equal to 10, I am showing a Green Circle. If BPI value greater than 5 and less than 10 Yellow diamond If less than 5 Red diamond.

  1.  First you have to open the site in Share point designer and find out the list. Second you have to check out Allitems.aspx page and open it.

    Designer1.jpg
  2. Once the page opens right click on Allitems.aspx then selct on Convert to XSLT Data View

    Designer02.jpg
  3. Then the list be converted to XSLT Data View.Now right click on the any value in  BPI column ,select Conditional formating

    Designer02A.jpg
  4. From the top right hand side  corner select Create then select Apply formatting

    Designer02BJPG.jpg
  5. You will get a pop up as shown below.Select the column in which you want to do Conditional formating. I selected as mentioned earlier BPI

    Designer02c.jpg
  6. Select comparison and value as per your requirements

    Designer02d.jpg
  7. Click Ok you will get another pop up as shown below

    Designer02e.jpg
  8. Here as I mentioned earlier, I am giving a background image for the condition. Browse the image for this condition. Alternatively you can choose a background color or you can change the font color etc
  9. Click ok. You have almost done. Repeat the same thing for other conditions also
  10. Once done just check the XSLT just created in the code view. You will get something similar to below

    Designer2.jpg
  11. You have done with the changes. Check in your Allitems.aspx
  12. Go to your list and enter the values for BPI. You can now see BPI column background is changing as per the condition I mentioned earlier.

    Designer4.jpg

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
Login to add your contents and source code to this article
 [Top] Rate this article
 
 About the author
 
Destin joy

You can reach him @ Destin.Joy@hotmail.com

Looking for C# Consulting?
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional consulting company, our consultants are well-known experts in .NET and many of them are MVPs, authors, and trainers. We specialize in Microsoft .NET development and utilize Agile Development and Extreme Programming practices to provide fast pace quick turnaround results. Our software development model is a mix of Agile Development, traditional SDLC, and Waterfall models.
Click here to learn more about C# Consulting.
 
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Discover the Top 5 .NET Memory Management Fundamentals
To write the best .NET code, you need to know exactly how the .NET framework really manages memory. Ricky Leeks presents the Top 5 fundamental facts of .NET memory management. Learn more.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!
 
 Post a Feedback, Comment, or Question about this article
Subject:
Comment:
Nevron Chart
Become a Sponsor
 Comments
good article Destin by Mahesh On August 13, 2010
Good work. Nice to see articles on Sharepoint designer.

Reply | Email | Modify 
Thanks by Destin On August 15, 2010
Thanks Mahesh Sir :)
Reply | Email | Modify 
Conditional formatting in Sharepoint List using Sharepoint Designer 2007 by Sivakumar On November 14, 2011
Hi, It's very interesting. I have a requirement like. I want to allow user to edit perticular field if logged-in user is equal to "Assigned To", how can I do this?. Thanks
Reply | Email | Modify 
DevExpress Free UI Controls
 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.