Bind MultiColumnComboBox to EntityDataSource

Thread is closed for posting
1 posts, 0 answers
  1. Peter
    Peter avatar
    12 posts
    Member since:
    Jan 2017

    Posted 18 Jan 2019 Link to this post

    Requirements

    Telerik Product and Version

    UI for ASP.NET AJAX 2019 R1

    Supported Browsers and Platforms

    all browsers supported by Telerik UI for ASP.NET AJAX suite

    Components/Widgets used (JS frameworks, etc.)

    RadMultiColumnComboBox, .NET 4.0/4.5 C#

    PROJECT DESCRIPTION


    This project shows how to easily bind the RadMultiColumnComboBox to an EntityDataSource.



    <telerik:RadMultiColumnComboBox runat="server" DropDownWidth="800"  DataSourceID="EntityDataSource1" DataTextField="ContactName">
        <ColumnsCollection>
            <telerik:MultiColumnComboBoxColumn Field="ContactName" Title="Name"></telerik:MultiColumnComboBoxColumn>
            <telerik:MultiColumnComboBoxColumn Field="City" Title="City"></telerik:MultiColumnComboBoxColumn>
            <telerik:MultiColumnComboBoxColumn Field="ContactTitle" Title="Title"></telerik:MultiColumnComboBoxColumn>
        </ColumnsCollection>
    </telerik:RadMultiColumnComboBox>
     
    <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=NorthwindReadWriteEntities"
        DefaultContainerName="NorthwindReadWriteEntities" EntitySetName="Customers" Select="it.[ContactName], it.[City], it.[ContactTitle]"
        AutoPage="true" OrderBy="it.[ContactName]">
    </asp:EntityDataSource>

    Related resources: 

Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.