By default, the RepositoryItemPopupContainerEdit.CloseOnOuterMouseClick property allows you to specify that the PopupContainerEdit should not close the pop-up window if the user clicks within another pop-up window opened by the control placed within the pop-up Form. However, there is no way to keep the pop-up window if the user clicks within the PopupContainerEdit owner Form. This example demonstrates how to create the editor inherited from the PopupContainerEdit that does not close its pop-up Form, unless the drop-down button or Escape keyboard key is pressed.
To implement this functionality, it is necessary to create a custom PopupContainerForm descendant, and override its AlllowMouseClick method. You can put any complex logic within this method to calculate whether or not the pop-up window should be closed in a certain situation. This example simply returns the True value in, any case.
See also:
How to register a custom editor for use in the XtraGrid
Question Comments
Added By: Martin Bauer 1 at: 9/7/2012 3:07:40 AM
it doesnt help if the user does a click outside of the application. in this case the QueryResult comes to early. the bigest limitation is now you cant show modal dialogs(OpenFileDialog) from a custompopup. Sad!
Added By: Kevin Gabbert 1 at: 6/5/2015 4:38:57 PMCustomPopupContainerEdit does not implement ISupportInitialize, so this can't be used as a control on a form. Nor can its popup position be set. This makes this solution useless.
Added By: Uriah (DevExpress Support) at: 6/8/2015 12:37:52 AMHello Kevin,
To process your recent post more efficiently, I created a separate ticket on your behalf: T252281: Feedback for E3586. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.
Hello.
I encountered the similar problem with my custom popup editor. When the user clicks outside the editor but inside the vertical grid owning this editor, it closes saving EditValue in the cell, as neccessary. But in the case of mouse click outside the grid my popup editor disappears leaving the cell value unchanged. I tried to call the grid's CloseEditor() method from various lost focus handlers, but it gave no result.
Please help me, how to force my popup editor to save changes in any case of closing up, except Esc pressed?