in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Text disappears in PopupContainerEdit after creating PopupControl

Last post 12/2/2008 11:17 AM by Andrey Tchasovskikh. 1 replies.
Page 1 of 1 (2 items)
Sort Posts:
Previous Next
  • 12/2/2008 10:50 AM

    Text disappears in PopupContainerEdit after creating PopupControl

    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.
  • 12/2/2008 11:17 AM In reply to

    Re: Text disappears in PopupContainerEdit after creating PopupControl

    Putting PopupControl creation into MyRepositoryItemReferencePopupEdit constructor solved this problem.
Page 1 of 1 (2 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED