Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Feature: No OnClick Event for Ratings [9125]

$
0
0
The ratings control does not support the OnClick event, only an OnChanged event. This is a problem for sites that allow users to submit a rating using a control that defaults to the item's existing average (a popular approach) as in this scenario the user can only submit a value if either a) their value is not equal to the existing average (CurrentRating), or b) a separate PostBack mechanism is implemented.

This behavior could be easily changed in the _onStarClick() event handler. This could be handled conditionally based on whether or not an OnClick event handler is defined in order to maintain backwards compatibility with the existing OnChanged behavior.

This is somewhat related to Issue#4017, although that pertains exclusively to client side events. I also posted about this at:
http://forums.asp.net/thread/1634913.aspx

I suspect there is a relatively easy way to work around this in JavaScript by overriding the event handler, although I'm not entirely sure how to accomplish this - worst case, posting this as a known work around would be useful.
Comments: I'd also like this changed - this one thing is forcing me to look for another control to use since now i either have to not show the current rating, or not allow people to pick that same value - either choice is not acceptable really.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



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