Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Rating Control in Visual Web Part not working.

$
0
0

I have Created a Visual Web Part in SharePoint 2013 and I have added "AverageRatingFieldControl" in Visual Web Part. Now While I see the Web Part it shows me "Rating not supported". 

I used Following Code

		    SPField field = item.Fields.GetFieldByInternalName("AverageRating");
                    BaseFieldControl renderingcontrol = field.FieldRenderingControl;
                    renderingcontrol.ControlMode = SPControlMode.Display;
                    renderingcontrol.ListId = directoryList.ID;
                    renderingcontrol.ItemId = item.ID;
                    Controls.Add(renderingcontrol);
I have checked this same question from technet also
http://social.technet.microsoft.com/forums/en-CA/sharepointdevelopmentprevious/thread/073e6768-0e3c-451c-816c-8639bee6b789

I also Tried From different Links also.

1) http://krunaljani.blogspot.in/2013/01/create-rating-visual-web-part-using.html
2) http://hi.baidu.com/tramadolyao/item/4f6140fd3ddc2508c6dc4501
3) http://popularsitess.blogspot.in/


Still not working

Note : 1) I have enabled rating Functionality in My List
2) I configured "
User Profile Service Application - Social Data Maintenance Job" and "User Profile Service Application - Social Rating Synchronization Job"

Thank You


Ritesh Goswami




Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>