Rating control in Ajax control toolkit will not raise the event if a user clicks on current rating star because in behaviour js it has checked if (this._ratingValue != this._currentRating), so I want to override this method without changing js and building toolkit. How can I do it, can I extend rating control and override RatingBehavior.js or any other solution.
_onStarClick : function(e) { /// <summary> /// Handler for a star's click event /// </summary> /// <param name="e" type="Sys.UI.DomEvent"> /// Event info /// </param> if (this._readOnly) { return; } if (this._ratingValue != this._currentRating) { this.set_Rating(this._currentRating); } },
I have solved it by putting the code just above