Upgrade to ASP.NET Core 3.1 from 2.2

4 posts, 1 answers
  1. Joel
    Joel avatar
    206 posts
    Member since:
    Jun 2018

    Posted 22 Jul 2020 Link to this post

    After upgrading from 2.2 to 3.1 my grid control no longer works.  I am available for a phone call if that is easier.

    Note: I have success with Html.Kendo().Menu() but also failure on Html.Kendo().TreeList<Group>().  I verified I have valid data.


    <Project Sdk="Microsoft.NET.Sdk.Web" ToolsVersion="15.0">
        <Content Update="nlog.config" CopyToOutputDirectory="PreserveNewest" />
        <PackageReference Include="bootstrap" Version="4.5.0" />
        <PackageReference Include="IdentityModel" Version="4.3.1" />
        <PackageReference Include="IdentityServer4" Version="4.0.3" />
        <PackageReference Include="Microsoft.ApplicationInsights" Version="2.14.0" />
        <PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.2.0" />
        <PackageReference Include="Microsoft.AspNetCore.Authentication.Abstractions" Version="2.2.0" />
        <PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="2.2.0" />
        <PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="3.1.6" />
        <PackageReference Include="Microsoft.AspNetCore.Http.Extensions" Version="2.2.0" />
        <PackageReference Include="Microsoft.AspNetCore.Identity" Version="2.2.0" />
        <PackageReference Include="Microsoft.Azure.KeyVault.Core" Version="3.0.5" />
        <PackageReference Include="Microsoft.Azure.Storage.Blob" Version="11.1.7" />
        <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.3" />
        <PackageReference Include="System.Text.Encodings.Web" Version="4.7.1" />
        <PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" />
        <PackageReference Include="Telerik.UI.for.AspNet.Core" Version="2020.2.617" />
        <PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
        <PackageReference Include="Telerik.Web.PDF" Version="2020.2.617" />
        <PackageReference Include="NLog.Web.AspNetCore" Version="4.9.2" />


    I note that on this training your header looks different than mine.  Do I need to completely rework this?


        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>@Glossary.Company Portal - @ViewData["Title"]</title>
        <link href="https://kendo.cdn.telerik.com/2020.2.617/styles/kendo.bootstrap-v4.min.css" rel="stylesheet" type="text/css" />
        <environment names="Development">
            <link rel="stylesheet" type="text/css" href="~/lib/bootstrap/css/bootstrap.css" />
            <link rel="stylesheet" type="text/css" href="~/css/site.css" />
        <environment names="Staging,Production">
                  asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" />
            <link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true" />
        <link rel="stylesheet" type="text/css" href="~/css/GsiWebPortalBootstrapTheme.css" />


    @using Gsi.Portal
    @using Kendo.Mvc.UI
    @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
    @addTagHelper *, Kendo.Mvc




        .Columns(columns =>
            columns.Command(command => command
            columns.Bound(p => p.FirstName);
            columns.Bound(p => p.LastName);
        .HtmlAttributes(new { style = "height:550px;" })
        .DataSource(dataSource => dataSource
            .Read(read => read.Action("IndexJson", "Users")
            .Model(m => m.Id(p => p.Id))


    if (response.IsSuccess)
        var persons = response.Result;
        if (persons != null)
            var dsResult = await persons.ToDataSourceResultAsync(request);
            return Json(dsResult);
            return CustomResponseToError(response);


  2. Answer
    Nikolay  avatar
    293 posts

    Posted 27 Jul 2020 Link to this post

    Hello Joel,

    Thank you for sharing the Grid declaration along with the related Kendo UI code.

    I looked into it and I can say it looks good.

    Generally, Kendo UI for ASP.NET Core is tested on .Net Core 3.1 and it works correctly. Can you please elaborate sharing more information:

    - Are there any JS errors or exceptions thrown?

    - Is the problem related to the data not displayed in the Grid?

    If the latter is the issue note that with ASP.NET Core 3.x there was a breaking change from Microsoft in the default JSON serialization options, thus we have added a section on configuring the JSON Serialization based on the framework version used:

    If the above is not the case it would best if you can submit a support thread sharing a sample runnable page that clearly replicates and isolates the problem. This will help us investigate further.

    Let me know if the above suggestion helps resolve the issue.

    Progress Telerik

  3. Joel
    Joel avatar
    206 posts
    Member since:
    Jun 2018

    Posted 27 Jul 2020 Link to this post

    Yes, it was the JSON configuration that fixed this.  Thanks.
  4. Nikolay
    Nikolay  avatar
    293 posts

    Posted 30 Jul 2020 Link to this post

    Hello Joel,

    I am glad to hear my suggestions are helping you resolve the situation.

    This thread will be closed now. Please submit a new one in case anything new arises. 

    Progress Telerik

Back to Top