【发布时间】:2009-02-10 04:39:14
【问题描述】:
如果用户点击当前评分星,Ajax 控制工具包中的评分控件不会引发事件,因为在行为 js 中它已检查
if (this._ratingValue != this._currentRating),所以我想重写这个方法而不改变js和构建工具包。我该怎么做,我可以扩展评级控制并覆盖RatingBehavior.js 或任何其他解决方案。
_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);
}
},
【问题讨论】:
标签: asp.net javascript ajax