Using the Ajax Control Toolkit Rating Control in SharePoint - a real-life example
As I had a hard time finding a working example of how the Ajax Control Toolkit Rating control has been implemented in SharePoin, I'm providing you here with a working example that you can download an use as a template.
It is fairly easy to implement this Ajax control in SharePoint, just make sure that you've update your web.config in order to support .NET 3.5 and AJAX controls. A good example can be found here.
My example provides the following functionalities:
- Shows the current rating the user has given earlier.
- Allows the user to set/change the rating.
- After rating, it shows an additional textbox that allows the user to leave an optional comment.
In my project, we had as well another rating control (in read-only mode) that shows the aggregation of all ratings given for that page. This rating control has been implemented using exactly the same "pattern" as shown in the code, only with an additional line
_racOverallRating.ReadOnly = true;
Please be aware that the source code is of an exemplary nature as I have deleted and commented all parts that are going to the business logic layer. But it should allow you to easily implement the rating control and enhance your SharePoint!
Any questions, just let me know.
Article was published on www.sharepointblogs.com by
Post a Comment