Skip to main content

RepositoryItemPopupBase.BeforePopup Event

Fires when the editor’s pop-up is about to be displayed.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

[DXCategory("Events")]
public virtual event EventHandler BeforePopup

Event Data

The BeforePopup event's data class is EventArgs.

Remarks

The BeforePopup event fires before the editor’s pop-up is displayed and allows you to customize the pop-up form. The code snippet below shows how to customize whether time editing is enabled in the DateEdit control pop-up.

private void dateEdit1_BeforePopup(object sender, EventArgs e) {
    (((DateEdit)sender).GetPopupEditForm() as PopupDateEditForm).Calendar.CalendarTimeEditing = DevExpress.Utils.DefaultBoolean.True;
}

The editor’s PopupBaseEdit.BeforePopup event is equivalent to the current BeforePopup event.

See Also