Declined
Last Updated: 11 Jan 2021 17:42 by ADMIN
chandra
Created on: 29 Dec 2020 22:32
Category: UI for Blazor
Type: Bug Report
0
TelerikLoader is not working

Hi Team, 

 

We tried to use the TelerikLoader in Blazor WASM app, but the loader is not appearing on the page. We tried the basic example given in the Demo but did not work. 

We are using latest Telerik Version (2.20.0).

@if (IsLoading)
{
    <TelerikLoader />
}
else
{
    @Data
}

 

We have below references in index.html

 

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>THOR.UI</title>
    <base href="/" />
    <link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
    <link href="css/app.css" rel="stylesheet" />
    <link href="css/toggle.css" rel="stylesheet" />
    <link href="css/spinner.css" rel="stylesheet" />
    <script src="_content/Telerik.UI.for.Blazor/js/telerik-blazor.js"></script>
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons"
          rel="stylesheet">
    <link id="theme" rel="stylesheet" href="./css/thor-light-theme-material.css" />
    <link href="_content/Blazored.Toast/blazored-toast.min.css" rel="stylesheet" />
    <script src="./site.js"></script>
    <script src="_content/BlazorInputFile/inputfile.js"></script>
    <script src="_content/BlazorPro.BlazorSize/blazorSize.min.js"></script>
    <script src="_content/Fluxor.Blazor.Web/scripts/index.js"></script>
    <script src="./scripts/download.js"></script>
</head>

I tried to follow this below article and add the reference as below and CDN also but it did not work.

<!DOCTYPE html>
<html>
<head>
    . . .
    <link href="/css/kendo-themes/default/dist/all.css" rel="stylesheet"/>
    <!-- Choose only one of the themes -->
    <!-- <link href="/css/kendo-themes/bootstrap/dist/all.css" rel="stylesheet" />
    <link href="/css/kendo-themes/material/dist/all.css" rel="stylesheet" /> -->
</head>

https://docs.telerik.com/blazor-ui/themes/overview?_ga=2.269201457.1913489120.1608593340-471458801.1594239147&_gac=1.246760112.1609172260.EAIaIQobChMI_f6ZxYnx7QIV-QOzAB0llwO7EAAYASAAEgK2pvD_BwE

 

Please let us know what changes we have to make this to work.

 

Thanks

Chandra Vanama

2 comments
ADMIN
Marin Bratanov
Posted on: 11 Jan 2021 17:42

It has been a while and there does not seem to be new information pointing to a bug in the components - this looks like an application issue related to referencing the styles. Thus, I am marking this as "Declined" since it was not a problem in the components themselves.

 

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ADMIN
Marin Bratanov
Posted on: 30 Dec 2020 14:32

Hi Chandra,

I am attaching a sample that works as expected for me so you can compare against it to find the culprit. Note how I've added a deliberate delay so you can actually see the loader component - if the data returns too quickly you might not see it.

 

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Attached Files: