Data source uses ling query

2 posts, 0 answers
  1. ian
    ian avatar
    1 posts
    Member since:
    Jan 2011

    Posted 21 Oct 2019 Link to this post


    Can anyone help with this please?

    The following HTML produces a satisfactory result in that all columns are populated:

    if (purchaseOrders == null)
        <table class="table">
                    <th>PO No.</th>
                    <th>PO Date</th>
                @foreach (var purchaseOrder in purchaseOrders)


    There is a linq query in a service file which retrieves data across the FK between "Purchase Order" and "Supplier". However the SupplierName column remains blank in the Telerik grid with the following code:

    <TelerikGrid Data="purchaseOrders" Height="800px"
                 Pageable="true" PageSize=@PageSize Sortable="true" Groupable="true"
            <GridColumn Field="@(nameof(PurchaseOrder.PurchaseOrderId))" Title="PO No." Groupable="false" />
            <GridColumn Field="@(nameof(PurchaseOrder.PurchaseOrderDate))" Title="PO Date" />
            <GridColumn Field="@(nameof(PurchaseOrder.Supplier.SupplierName))" Title="Supplier" />

    The HTML and Telerik grids use the same data source and models.  Many thanks







  2. Marin Bratanov
    Marin Bratanov avatar
    5704 posts

    Posted 22 Oct 2019 Link to this post

    Hi Ian,

    At the moment, the grid does not support nested models, and you can Follow the implementation of such functionality in this page: I've added your Vote for you, and you can find linked from it solutions (like using a template or implementing a flattened view-model).


    Marin Bratanov
    Progress Telerik

     UI for Blazor
Back to Top