Skip to main content
A newer version of this page is available. .
Tab

ASPxRatingControl.ReadOnly Property

Gets or sets the read-only status of the ASPxRatingControl control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(false)]
public bool ReadOnly { get; set; }

Property Value

Type Default Description
Boolean **false**

true if end-users cannot modify a control’s value; otherwise, 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;
     }
See Also