New to Telerik UI for ASP.NET MVC? Download free 30-day trial

SkeletonContainerGridSettingsBuilder

Methods

Columns(System.Double)

Defines the number of grid columns.

Parameters

value - System.Double

The value that configures the columns.

Example


            @(Html.Kendo().SkeletonContainer()
                .Name("skeleton")
                .Grid(grid => {
                    grid.Columns(4);
                })
            )

Gap(System.Action)

Defines the horizontal and vertical spacing between the skeleton items.

Parameters

configurator - System.Action<SkeletonContainerGridGapSettingsBuilder>

The action that configures the gap settings.

Example


            @(Html.Kendo().SkeletonContainer()
                .Name("skeleton")
                .Grid(grid => {
                    grid.Gap(gap => gap.Columns(20).Rows(10));
                })
            )

Items(System.Action)

Defines the settings of the grid items.

Parameters

configurator - System.Action<SkeletonContainerGridSettingsItemFactory>

The action that configures the grid items.

Example


            @(Html.Kendo().SkeletonContainer()
                .Name("skeleton")
                .Grid(grid => {
                    grid.Items(i=> {
                        i.Add().ColStart(1).ColSpan(1).RowStart(1).RowSpan(1).Shape(SkeletonContainerItemShape.Rectangle);
                        i.Add().ColStart(2).ColSpan(1).RowStart(1).RowSpan(1).Shape(SkeletonContainerItemShape.Rectangle);
                    });
                })
            )

Rows(System.Double)

Defines the number of grid rows.

Parameters

value - System.Double

The value that configures the rows.

Example


            @(Html.Kendo().SkeletonContainer()
                .Name("skeleton")
                .Grid(grid => {
                    grid.Rows(4);
                })
            )

In this article
Not finding the help you need?