ASPxRatingControl.ReadOnly Property
Gets or sets the read-only status of the ASPxRatingControl control.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
Boolean | false |
|
#Remarks
The ReadOnly property specifies whether an end-user is able to select items.
To obtain the current control’s status on the client use the ASPxClientRatingControl.GetReadOnly method. Use the ASPxClientRatingControl.SetReadOnly method to dynamically change a control’s status on the client. To modify the control’s read-only status on the server side use the ASPxRatingControl.Value property.
#Example
This part of the Data Binding demo illustrates how the ASPxRatingControl can be used in read-only mode.
protected decimal GetRatingValue(object value) {
return value != null ? Decimal.Parse((string)value) : 0;
}