Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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