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: This feature is implemented and will be available in one of future releases.
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: This feature is implemented and will be available in one of future releases.