ASPxClientUploadControl.SetEnabled(enabled) Method

Specifies whether the upload control is enabled.

Declaration

SetEnabled(enabled: boolean): void

Parameters

Name Type Description
enabled boolean

true, to enable the upload control; otherwise, false.

Remarks

Use the SetEnabled method on the client to dynamically change a component's ability to respond to end-user interactions (such as mouse clicks). An editor's initial availability state can be defined by using the ASPxEditBase.ClientEnabled property.

Note, the SetEnabled method result is not sent to the server side when a request is performed. This means that the disabled/enabled state is not synchronized with the server-side object. If you want to synchronize disabled states between client and server sides, for example, you can use the ASPxHiddenField control, containing the disabled state and restore it on the server side.

Note

The SetEnabled method is not in effect if an editor is initially disabled on the server by setting the Enabled property to false.

See Also