Skip to main content

PopupGalleryEditGallery.CloseOnItemClick Property

Gets or sets whether the PopupGalleryEditGallery popup window closes immediately when an end-user clicks a gallery item. This property is not supported if the RepositoryItemPopupGalleryEdit.ShowButtons option is enabled.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(true)]
[DXCategory("Behavior")]
public bool CloseOnItemClick { get; set; }

Property Value

Type Default Description
Boolean true

true if the PopupGalleryEditGallery window closes when an end-user clicks a gallery item; otherwise, false.

Remarks

The CloseOnItemClick property specifies whether the PopupGalleryEdit popup window closes on a gallery item click. If this property is set to true, a click on a gallery item causes the popup window to immediately close and the current selection to be saved. Enabling this behavior is not recommended in multiple item selection mode (see PopupGalleryEditGallery.ItemCheckMode).

Note

The CloseOnItemClick property is not in effect if the RepositoryItemPopupGalleryEdit.ShowButtons property is set to true (the default value). In this mode, the embedded OK and Cancel buttons allow an end-user to save/discard the current selection.

See Also