Class Rating
Represents the Rating UI element.
Implements
Inherited Members
Namespace: Syncfusion.JavaScript.Web
Assembly: Syncfusion.EJ.Web.dll
Syntax
public class Rating : CommonControl, INamingContainer, IPostBackEventHandler, IPostBackDataHandler, IUrlResolutionService
Constructors
Rating()
Declaration
public Rating()
Properties
AllowReset
Gets or sets the allow reset.
Declaration
public bool AllowReset { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The allow reset. |
ClientSideOnClick
Occurs when Rating control is clicked successfully.
Declaration
public string ClientSideOnClick { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client side on click. |
ClientSideOnCreate
Occurs when Rating control is created.
Declaration
public string ClientSideOnCreate { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client side on create. |
ClientSideOnDestroy
Occurs when Rating control is destroyed successfully.
Declaration
public string ClientSideOnDestroy { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client side on destroy. |
ClientSideOnMouseMove
Occurs when mouse hovered move the Rating control.
Declaration
public string ClientSideOnMouseMove { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client side on mouse move. |
ClientSideOnMouseOut
Occurs when mouse hover is removed from Rating control.
Declaration
public string ClientSideOnMouseOut { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client side on mouse out. |
ClientSideOnMouseOver
Occurs when mouse hovered over the Rating control.
Declaration
public string ClientSideOnMouseOver { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client side on mouse over. |
ClientSideOnValueChanged
Occurs when Rating value changes.
Declaration
public string ClientSideOnValueChanged { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client side on change. |
CssClass
Gets or sets the CSS class to achieve custom theme.
Declaration
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String | The css class. |
Enabled
Gets or sets the enabled.
Declaration
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The enabled. |
EnablePersistence
Gets or sets the enable persistence.
Declaration
public bool EnablePersistence { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The enable persistence. |
Height
Gets or sets the height of the Rating control wrapper.
Declaration
public string Height { get; set; }
Property Value
Type | Description |
---|---|
System.String | The shape height. |
HtmlAttributes
Declaration
public IDictionary<string, object> HtmlAttributes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> |
IncrementStep
Gets or sets the value to be increased while navigating between shapes(stars) in Rating control.
Declaration
public int IncrementStep { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The increment step. |
MaxValue
Gets or sets the maximum number of Rating shape(star).
Declaration
public double MaxValue { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The max value. |
MinValue
Gets or sets the minimum number of Rating shape(star).
Declaration
public double MinValue { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The min value. |
Model
Gets or sets the Rating Properties to the model
Declaration
public RatingProperties Model { get; set; }
Property Value
Type | Description |
---|---|
RatingProperties |
Orientation
Specifies the orientation of Rating control.
Declaration
public Orientation Orientation { get; set; }
Property Value
Type | Description |
---|---|
Orientation | The orientation. |
Precision
Gets or sets the precision.
Declaration
public Precision Precision { get; set; }
Property Value
Type | Description |
---|---|
Precision | The precision. |
ReadOnly
Gets or sets the interaction with Rating control can be prevented by enabling this API.
Declaration
public bool ReadOnly { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The read only. |
ShapeHeight
Gets or sets the height of the Rating control wrapper.
Declaration
public int ShapeHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The shape height. |
ShapeWidth
Gets or sets the width of each shape in Rating control.
Declaration
public int ShapeWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The shape width. |
ShowTooltip
Gets or sets the show tool tip.
Declaration
public bool ShowTooltip { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The show tooltip. |
Value
Gets or sets the number of stars to be selected while rendering.
Declaration
public double Value { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The value. |
Width
Gets or sets the width of each shape in Rating control.
Declaration
public string Width { get; set; }
Property Value
Type | Description |
---|---|
System.String | The shape width. |
Methods
DependentScripts()
Represents the dependent scripts for Rating control.
Declaration
public List<string> DependentScripts()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.String> | This method returns the list of dependent script files which is of type string |
GetDependentFiles()
Get the dependent files for Rating control
Declaration
public override List<string> GetDependentFiles()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |
Overrides
LoadViewState(Object)
Restores view-state information from a previous page request.
Declaration
protected override void LoadViewState(object state)
Parameters
Type | Name | Description |
---|---|---|
System.Object | state |
Overrides
OnPreRender(EventArgs)
Modifying server controls before sending them to the client.
Declaration
protected override void OnPreRender(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
PostBackEventHandler(String, Dictionary<String, Object>)
Gets a value that indicates whether the page is being loaded in response to a postback.
Declaration
public override void PostBackEventHandler(string EventName, Dictionary<string, object> args)
Parameters
Type | Name | Description |
---|---|---|
System.String | EventName | |
System.Collections.Generic.Dictionary<System.String, System.Object> | args |
Overrides
Render()
Render this instance
Declaration
public string Render()
Returns
Type | Description |
---|---|
System.String |
Render(HtmlTextWriter)
Declaration
protected override void Render(HtmlTextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Web.UI.HtmlTextWriter | writer |
Overrides
UpdateServerModel(Dictionary<String, Object>)
Maintaining viewstate model values on post back
Declaration
public override void UpdateServerModel(Dictionary<string, object> ClientModel)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<System.String, System.Object> | ClientModel |
Overrides
Events
Change
Occurs when change the rating.
Declaration
public event Rating.RatingEventHandler Change
Event Type
Type | Description |
---|---|
Rating.RatingEventHandler |