Ticket T1287314
Visible to All Users

Tagbox - selects multivalues with CustomStore

created 11 days ago (modified 11 days ago)

Hello,

I am working with the dxTagBox component, and I need to allow users to perform different searches and select items.
In the following example CodeSandBox, you can select one of the default options, such as 'Projector PlushHD.' Then, search for 'Excel,' and the options filtered by 'Excel' are displayed. However, if you select one, it is not added to the TagBox; instead, it clears the input.

Can you help me, please?

Comments (2)
R R
Rodge De Luna (DevExpress Support) 10 days ago

    Hello,

    Unfortunately, the sample cannot be found or accessed. Please double-check if it's correct and whether it has been shared publicly.
    Clipboard-File-1.png

    I look forward to your response.

    S S
    sergio.cortes@external.t-systems.com 10 days ago

      Sorry, can you try to access, please?

      CodeSandBox

      Answers approved by DevExpress Support

      created 10 days ago

      Thank you for the update. The project is accessible now.

      Your TagBox doesn't display selected values when searching for "Excel" because of the load function implementation in your CustomStore. It only fetches items that match searchValue or default to "HD", so if a selected item isn’t part of that result, it won’t appear in the list.

      To fix this, modify the fallback value in your load function to an empty string ("") instead of a fixed string like "HD". This way, it loads all items when there’s no search term and ensures selected values remain visible.

      Please let me know if you need further assistance.

        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.