Fires when closing the popup window, enabling you to specify the editor's value based on the state of controls residing within the popup.
[DXCategory("Events")] public event QueryResultValueEventHandler QueryResultValue
<DXCategory("Events")> Public Event QueryResultValue As QueryResultValueEventHandler
The QueryResultValue event's data class is QueryResultValueEventArgs. The following properties provide information specific to this event:
|Value||Gets or sets the editor value.|
Popup container editors let you display control(s) within their popup window. Hence, unlike other popup editors, it does not automatically assign the edit value when the end-user closes the dropdown window. Thus, you need to handle the QueryResultValue event to specify the edit value depending on the state of the controls displayed within the popup window. To specify the edit value, use the QueryResultValueEventArgs.Value parameter.
Note: the event is not raised if the popup window is closed discarding changes made in it. See the RepositoryItemPopupBase.CloseUp event description for the list of cases when changes are discarded.
You may need to perform reverse action - update the controls within the popup when the editor's value changes. You may handle the RepositoryItem.EditValueChanged event for this purpose.
The editor's PopupContainerEdit.QueryResultValue event is equivalent to the current event.