Rating Control (demo)

The Rating control provides intuitive rating experience that allows users to select the number of stars that represents their rating

Properties

Name Description
AutoPostBack Set to True to cause a postback on a rating item click
BehaviorID ID of the behavior object
CurrentRating An Initial rating value
EmptyStarCssClass A CSS class for a star in empty mode
FilledStarCssClass A CSS class for a star in filled mode
ID Rating control ID
MaxRating Maximum rating value
RatingDirection Orientation of stars (LeftToRightTopToBottom or RightToLeftBottomToTop)
ReadOnly Whether or not the rating can be changed
StarCssClass A CSS class for a visible star
Tag A custom parameter to pass to ClientCallBack
WaitingStarCssClass A CSS class for a star in waiting mode

Methods

GetCallbackResult()
Returns a callback result

RaiseCallbackEvent(eventArgument)
Raises the callback event
Params:
  • eventArgument
    • Type: String
    • Description: Event argument

RaisePostBackEvent(eventArgument)
Raises the postback event
Params:
  • eventArgument
    • Type: String
    • Description: Event argument

Events

Changed
Fires when rating is changed

RatingExtender (demo)

The Rating extender provides intuitive rating experience that allows users to select the number of stars that represents their rating. The page designer can specify the initial rating, the maximum rating to allow, the alignment and direction of stars, and custom styles for the different states a star can have. Rating also supports a ClientCallBack event that allows custom code to run after the user has rated something.

Properties

Name Description
AutoPostBack True to cause a postback on a rating item click
CallbackID ID of the callback
EmptyStarCssClass A CSS class for a star in empty mode
FilledStarCssClass A CSS class for star in filled mode
MaxRating A maximum rating value
Rating A current rating value
RatingDirection Orientation of stars (LeftToRightTopToBottom or RightToLeftBottomToTop)
ReadOnly Whether or not the rating can be changed
StarCssClass A CSS class for a visible star
Tag A custom parameter to pass to the ClientCallBack
WaitingStarCssClass A CSS class for a star in waiting mode

Last edited Sep 14, 2015 at 10:13 AM by fadilmamedov, version 4