Skip to main content

ASPxClientEdit.SetReadOnly(readOnly) Method

Specifies whether the control’s state is read-only on the client side.

Declaration

SetReadOnly(
    readOnly: boolean
): void

Parameters

Name Type Description
readOnly boolean

true, to make the control read-only on the client side; otherwise, false.

Remarks

Use the SetReadOnly method to dynamically change a control’s read-only state on the client. The initial Read Only state of an editor can be defined using its server ASPxEdit.ClientReadOnly property. To obtain the current control’s status on the client, use the ASPxClientEdit.GetReadOnly method.

See Also