Wednesday, September 28, 2016

How to add Rating Control on SharePoint Designer List Display Page

It's relatively simple to add the rating control on display if you follow these steps:
  • Edit the Display Form
  • Add the following Register Tag at the last Register Tag at the top:
    <%@ Register TagPrefix="SharePointPortalControls" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %> 
  • Add the following control to the layout where you want to place the rating control:<SharePointPortalControls:AverageRatingFieldControl FieldName="AverageRating" ControlMode="Display" runat="server"></SharePointPortalControls:AverageRatingFieldControl>
  • Save and open any existing item... :) 
  • Enjoy, but don't forget to enable the ratings from the list settings before doing these steps. 

 

2 comments:

  1. This is my first time i visit here and I found so many interesting stuff in your blog especially it's discussion,Sharepoint consultants near me thank you.

    ReplyDelete

  2. Thanks for your efforts in sharing this post with us. This was really awesome. kindly keep continuing the great work.
    Sharepoint consultants near me

    ReplyDelete