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

Razor Page

This article describes how to configure the Telerik UI Window HtmlHelper for ASP.NET Core in a RazorPage scenario.

The example below demonstrates how to load content in Window from the server. See the implementation details in the example below, and for the full project with RazorPages examples, visit our GitHub repository.

    @inject Microsoft.AspNetCore.Antiforgery.IAntiforgery Xsrf
    @Html.AntiForgeryToken()

    @(Html.Kendo().Window()
        .Name("window")
        .Title("Window title")
        .Content(@<text>
            <p>
             @Model.Text
            </p>        
        </text>)
        .Actions(actions => actions
            .Minimize()
            .Maximize()
            .Close()
        )   
        .Width(600)    
    )

    public string Text = String.Empty;
    public void OnGet()
    {
        Text = "Lorem ipsum dolor sit amet...";
    }

See Also

In this article
Not finding the help you need? Improve this article