Ticket T484992
Visible to All Users

popupContainerEdit / gridLookUpEdit display multiple selected values with an "X" Button in text editor

created 8 years ago

I would like to select multiple values from a grid, The selected items have to visible in the text box.
I can achieve something similar using the popupContainerEdit  (or gridLookUpEdit  i think) but the select values are displayed as a comma seperated
string list.
Common web frameworks are able to display the selected values as kind of an object with an "X" on each item (Example screenshot) and with additional infos.
It is possible to achieve this with winforms and devexpress?

Thank you!

Answers approved by DevExpress Support

created 8 years ago (modified 8 years ago)

Hello,

Thank you for providing us with the screenshot.
I recommend you take a look at our TokenEdit. This editor validates the entered text and converts valid text blocks into tokens - separate visual elements that can display a text string, an icon, can be clicked and hovered. Also, it can be used as an in-place editor for your GridControl. Please refer to the mentioned help article for more information.

Should you have additional questions, let us know.

    Comments (2)

      Thank  you for your quick answer!
      The Control lokks good.
      Do you think it is possible to show a grid as a drop down like in the attached image?
      (perhaps using CustomDropDownControl)

      DevExpress Support Team 8 years ago

        Hello,

        Thank you for the detailed information.
        By default, our TokenEdit does not provide the capability to show GridControl on its popup form. However, I can offer you an alternative way of achieving the required goal.

        1. Use our PopupContainerEdit with PopupContainerControl.
        2. Place the required GridControl on your PopupContainerControl.
        3. Then use the approach from the How to create a control that shows a list of tags example to create the required tokens in your PopupContainerEdit.

        Please try this approach and let me know your results.

        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.