ASP.NET MVC SkeletonContainer Overview

Telerik UI for ASP.NET MVC Ninja image

The SkeletonContainer is part of Telerik UI for ASP.NET MVC, a professional grade UI library with 110+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.

The Telerik UI SkeletonContainer HtmlHelper for ASP.NET MVC is a server-side wrapper for the Kendo UI SkeletonContainer widget.

The SkeletonContainer widget indicates to the user that the content is coming but has not yet been loaded. It aims at helping the user focus on progress and makes the page load time appear shorter.

A SkeletonContainer is basically a simplified preview version of a page into which information is gradually loaded (i.e. via AJAX requests).

Initializing the SkeletonContainer

It is recommended to initialize the widget from a div HTML element.

The following example demonstrates how to initialize the SkeletonContainer from an existing <div> element.

    @(Html.Kendo().SkeletonContainer()
        .Name("skeleton")
        .Animation(SkeletonContainerAnimation.Pulse)
        .TemplateId("tmpl")
    )

Functionality and Features

The Telerik UI SkeletonContainer for ASP.NET MVC accepts either a template or a CSS Grid. While the developer can pass merely anything at the template, the CSS Grid exposes an Item object that has a set of predefined properties. Find out more about the CSS Grid setup here:

Next Steps

In this article