Ticket T1011932
Visible to All Users

How to implement a drop-down editor with multiple columns in XAF Blazor

created 4 years ago (modified 4 years ago)

[DevExpress Support Team: CLONED FROM T936581: Blazor - How to display LookupPropertyEditor's items in a popup window with the New action]
How to implement the drop-down when the multi-column display?

Answers approved by DevExpress Support

created 4 years ago (modified 2 years ago)

Hello Chengwei,

v22.2+

To show additional columns in a lookup ListView, make them visible in the Views | ClassName_LookupListView model: List View Columns Customization.

Older versions

Versions prior to v22.2 do not have a built-in Blazor Property Editor with this capability. You can implement your own Property Editor to achieve this: How to: Implement a Property Editor Based on a Custom Component (Blazor). For example, this Property Editor can use our DxComboBox component with the Multiple Columns feature.

    Show previous comments (6)
    DevExpress Support Team 4 years ago

      Hi Chengwei,

      The DxComboBox.Data property accepts a collection that implements the IEnumerable<T> interface. The IQueryable<T> and IList<T> interfaces implement IEnumerable<T>. You can assign a collection that implements these interfaces.

      To support paging in DxComboBox, it's necessary to use another way to bind data to it. Please refer to the following ticket that describes how to support paging: ComboBox for Blazor - How to connect control to a large database.

        Thanks to Adam for sharing the code.
        Very usefull.

        Anatol (DevExpress) 2 years ago

          I am happy to inform you that Blazor lookups can now display multiple columns: What's New in v22.2 - XAF. This feature is applied to all lookups whose model has more than one visible column: List View Columns Customization. Download v22.2 Beta to try it right now.

          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.