Version

RatingModel Class Properties

For a list of all members of this type, see RatingModel members.

Public Properties
 NameDescription
Public PropertyClientEventsSet implementations of client events raised by a widget.

Event handler assumes 2 parameters: 1st parameter has name "evt" and 2nd parameter has name "ui". To get information about member variables available for "ui" parameter, please consult documentation of a widget and its events.

Examples:

1. Full implementation:

new Dictionary<string, string> { { "dropDownOpening", "function(evt,ui){alert('drop:'+ui.owner);}" } }

2. Content of inline function:

new Dictionary<string, string> { { "dropDownOpening", "alert('drop:'+ui.owner);" } }

3. Name of global function:

new Dictionary<string, string> { { "dropDownOpening", "nameOfGlobalFunction" } } Note:

Instead of explicit key-strings, which represent name of event exposed by a widget, the event-constants defined by a particular control can be used.

Example:

new Dictionary<string, string> { { ComboClientEvents.DropDownOpening, "nameOfGlobalFunction" } } (Inherited from Infragistics.Web.Mvc.ModelWidgetBase)
Public PropertyCssVotesSets model for custom css classes for vote-item at particular index.  
Public PropertyDisabledSets disabled state of control.  
Public PropertyFocusableSets option to enable control getting focus.  
Public PropertyHtmlAttributesSets custom attributes for main html element used by control  
Public PropertyIDSets the ID of the rating.  
Public PropertyInputNameSets the name of the hidden input element that will store the value.  
Public PropertyLanguageGets/sets Language the control (Inherited from Infragistics.Web.Mvc.Framework.LocalizationBaseModel)
Public PropertyLocaleGets/sets the Locale of the control (Inherited from Infragistics.Web.Mvc.Framework.LocalizationBaseModel)
Public PropertyPrecisionSets precision.  
Public PropertyPrecisionZeroVoteSets part of vote-size, which is considered as zero value.  
Public PropertyRegionalGets/sets the Regional of the control (Inherited from Infragistics.Web.Mvc.Framework.LocalizationBaseModel)
Public PropertyRoundedDecimalPlacesSets number of decimal places used to round value.  
Public PropertySwapDirectionSets swaped direction from left to right or from top to bottom in case of vertical orientation.  
Public PropertyThemeSets theme for control. Note: in order for that option to have effect, the css classes with "theme" selectors should be available for page.  
Public PropertyValidatorOptionsSets validator options. Note: this option will have effect only when application registers ig.ui.validator.js and ig.ui.validator.css.  
Public PropertyValueSets value for control.  
Public PropertyValueAsPercentSets option to use percentage units or vote-number units for the Value and HoverValue.  
Public PropertyVerticalSets vertical orientation of control.  
Public PropertyVoteCountSets number of vote items.  
Public PropertyVoteItemHeightSets height of vote item in pixels.  
Public PropertyVoteItemWidthSets width of vote item in pixels.  
Protected Properties
 NameDescription
Protected PropertyStoreReturn the store with all of the options (Inherited from Infragistics.Web.Mvc.ModelBase)
See Also

View on GitHub