Declined
Last Updated: 28 Apr 2019 05:28 by ADMIN
Mark
Created on: 25 Apr 2019 19:54
Category: Grid
Type: Bug Report
0
UI for Blazor TelerikGrid 0.50 never loads any data

The TelerikGrid never loads any data. the app just hangs. 

I copied the Telerik sample from the online demo. 

 The HTML table loads perfectly.

 Using VS 2019  16.1.0 Preview 2.0.

Acquired Telerik nuget package directly from Telerik feed.

 

 

 

    <TelerikGrid Data=@ViewModel.GetCorePharmacies() Height="300">
        <TelerikGridColumns>
            <TelerikGridColumn Field="ID" Title="NCPDP#" />
            <TelerikGridColumn Field="NPINumber" Title="NPI#" />
            <TelerikGridColumn Field="DBAName" Title="Pharmacy" />
            <TelerikGridColumn Field="StoreNumber" Title="Store#" />
        </TelerikGridColumns>
    </TelerikGrid>

    @*<table class="table">
        <thead>
            <tr>
                <th>NCPDP</th>
                <th>NPI</th>
                <th>DBA Name</th>
                <th>Store#</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var pharmacy in ViewModel.GetCorePharmacies())
            {
                <tr>
                    <td>@pharmacy.ID.ToString()</td>
                    <td>@pharmacy.NPINumber.ToString()</td>
                    <td>@pharmacy.DBAName</td>
                    <td>@pharmacy.StoreNumber</td>
                </tr>
            }
        </tbody>
    </table>*@

 

Any thoughts. 

5 comments
Ben Hayat
Posted on: 26 Apr 2019 16:56

Got you. When you said "support", that throw me off, as I'm just a user.

Glad it worked.

..Ben

Mark
Posted on: 26 Apr 2019 16:54

Ben,

 

Sorry about the confusion.

What you asked was what was missing.

In the client project startup, do you add Telerik service do your DI?

        public void ConfigureServices(IServiceCollection services)
        {
            services.AddTelerikBlazor();
        }


Mark  

Ben Hayat
Posted on: 26 Apr 2019 16:47

>>The response from support was exactly what I was missing.<<

Can you share what the response was, so we can learn too?

Thanks!

..Ben

Mark
Posted on: 26 Apr 2019 10:47

I did not read the documentation.

My fault on this.

The response from support was exactly what I was missing.

I didn't see a link in the blog post for 0.5.0 for the documentation which can be found at:

https://docs.telerik.com/blazor/introduction

 

Ben Hayat
Posted on: 26 Apr 2019 00:05
In the client project startup, do you add Telerik service do your DI?

        public void ConfigureServices(IServiceCollection services)
        {
            services.AddTelerikBlazor();
        }