Bug Report T297639
Visible to All Users

The TokenLookupEdit control uses the DisplayMember property value instead of the ValueMember one in the filter

created 9 years ago (modified 9 years ago)

Hello,

I am using LookUpEdit control for WPF (as TokenLookupEdit). The build I am using is 15.1.7. I have created a demo project which will reproduce this issue. My scenario is as follows.

1- I have a student collection which is set to ItemsSource of LookupEdit control.
2- Each student has Id, FirstName, and LastName field. Id is the unique identifier for the student, but I have set LastName as DisplayMember for LookupEdit control.
3- Multiple students can have same last name (Real world scenario).
4- Now when I type a common LastName (e.g. Muller in attached project) it shows the correct filtering behavior. But as soon as I have selected a first record, and tries to type again (Muller) the popup grid shows strange behavior and no record is shown however there should be 2 more records.
5- Moreover the selected EditValue also shows invalid Id(s) in this case, same Id(s) for different selection. Please have a look on SelectedStudents in viewmodel.

Could you please help me out that how to handle this scenario?

Regards

Comments (2)
DevExpress Support Team 9 years ago

    Hello Shahab,

    Thank you for providing the test project. I was able to replicate this problem on our side. I will forward this ticket to our R&D team, and we will contact you as soon as we have any results.

    Thanks,
    Elliot

      Thanks Elliot for your response.

      Answers approved by DevExpress Support

      created 9 years ago

      We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

      Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

        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.