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

Stepper in Razor Pages

Razor Pages is an alternative to the MVC pattern that makes page-focused coding easier and more productive. This approach consists of a cshtml file and a cshtml.cs file (by design, the two files have the same name).

You can seamlessly integrate the Telerik UI Stepper for ASP.NET Core in Razor Pages applications.

This article describes how to configure the Stepper component in a Razor Pages scenario.

For the complete project, refer to the Stepper in Razor Pages example.

    @inject Microsoft.AspNetCore.Antiforgery.IAntiforgery Xsrf

        .Steps(s =>

    public bool Label { get; set; }
    public bool Indicator { get; set; }

    public double Value { get; set; }
    public void OnGet()
        Label = true;
        Indicator = false;

See Also

In this article