Ticket Q336096
Visible to All Users

PopupContainerEdit - Display Image

created 14 years ago

Is there a way to display an Image in the PopupContainerEdit display region. (not the popupcontrol)

Comments (2)
DevExpress Support Team 14 years ago

    Hi Frank,
    Thank you for your message.
    Yes, it is possible. The easiest way to get it done is to create a new editor button with the EditorButton.Image property set to any image and the EditorButton.Kind property - to Glyph. Then, add this button to the RepositoryItemPopupContainerEdit.Buttons collection.
    We hope that you find this information helpful.
    Thanks,
    Svetlana

      Using your suggestion, is there an easy to get the glyph'd button centered with the drop down button still in place on the right?

      Answers

      created 14 years ago

      Hi Frank,
      I'm afraid this cannot be done. Buttons can be located on the left and right sides of the editor only. If you need a centered image, create an editor descendant. Please refer to the Custom Editors help topic to learn more about how to create our editor descendant. Attached is a sample project that illustrates this approach.
      Thanks,
      Ted

        Comments (2)

          Hi
          how to override the displaytext? i set the popupcontrol  to contains a richtextedit. after post, the displaytext of richtextedit also shown. how to make it only show image doesn't show text.

          DevExpress Support Team 10 years ago

            Hello,

            To process your recent post more efficiently, I created a separate ticket on your behalf: T251002: How to show an image without a text in PopupContainerEdit. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.