What I have:
1) My own control MyReferencePopupEdit derived from PopupContainerEdit.
2) My own MyRepositoryItemReferencePopupEdit derived from RepositoryItemPopupContainerEdit.
3) My own MyReferencePopupControl derived from PopupContainerControl.
MyRepositoryItemReferencePopupEdit.PopupControl property is hidden from base class because its type is ReferencePopupControl:
public new MyReferencePopupControl PopupControl
{
get { return base.PopupControl as MyReferencePopupControl; }
set { base.PopupControl = value; }
}
There is nothing special in all my controls, they works fine except for one situation.
What I need: user types in some text, presses Enter or Select button and gets a popup with records filtered according that text.
What I get: when user typed in a text, pressed Enter, I get records from DB and create popup control with my own method. This method returns ReferencePopupControl which OwnerEdit.Text property equals to typed in text. And when I assign newly created MyReferencePopupControl to MyRepositoryItemReferencePopupEdit.PopupControl property, its OwnerEdit.Text turns to empty string.
So in practice it looks like this: user types in text, presses Enter, gets a popup with filtered records and an empty string in PopupContainerEdit text area. Thats not cool at all.
I've searched for this issue on this board, but it seems nobody experienced this problem with PopupContainerEdit, only with LookUpEdit.