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

CheckBoxProperties.AllowGrayedByClick Property

Gets or sets a value that specifies whether a check box can be set to a grayed state by a mouse click.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(true)]
public bool AllowGrayedByClick { get; set; }

Property Value

Type Default Description
Boolean **true**

true if end-users can set grayed state by clicking the check box; otherwise, false.

Remarks

By default, a check box can be set to either the checked or unchecked check state. To enable the third grayed state, set the CheckBoxProperties.AllowGrayed property to true. Set the AllowGrayedByClick property to false, to prohibit end-users from setting the grayed check box state via a mouse click. In this case, you can set a check box to the grayed state programmatically via the ASPxCheckBox.CheckState property on the server side and using the ASPxClientCheckBox.SetCheckState method on the client side.

Note

  • If the CheckBoxProperties.AllowGrayed property is set to false, the AllowGrayedByClick property is not in effect.
  • The AllowGrayedByClick property is not in effect for the radio button.
See Also