pbEnabled - cWebBaseUIObject

Determines whether the control can accept the focus

Type: Property

Access: Read/Write

Data Type: Boolean

Parameters: None

Syntax
 Property Boolean pbEnabled

Read Access: Get pbEnabled to BooleanVariable
Write Access: Set pbEnabled to BooleanVariable/Value


Description

The pbEnabled property is used to control user access to a web control.

If pbEnabled is set to False, then the user cannot give focus to the control or edit any data that it is displaying. The control is still visible, but it will be rendered in a lighter color (according to the cascading style sheets (CSS) theme (psTheme) you are using).


In a cWebGrid, if pbEnabled is set to False, the control can still get the focus, but disabled columns cannot.

The other properties that can be used to manage the visibility of a Web Control are pbVisible and pbRender.