Content

The Window provides options for loading its content on demand.

  1. Make sure you followed all the steps from the introductory article on Telerik UI for ASP.NET MVC.
  2. Create a new action method which renders the view.

    public ActionResult Index()
    {
        return View();
    }
    
  3. Create an action method which renders the content.

    public ActionResult AjaxContent()
    {
        return View();
    }
    
  4. Add a Window.

        <% Html.Kendo().Window()
            .Name("window") // The name of the Window is mandatory. It specifies the "id" attribute of the Window.
            .Title("About Alvar Aalto") // Set the title of the Window.
            .LoadContentFrom("AjaxContent", "Window") // Define the Action and Controller names.
        %>
    
        @(Html.Kendo().Window()
            .Name("window") // The name of the Window is mandatory. It specifies the "id" attribute of the Window.
            .Title("About Alvar Aalto") // Set the title of the Window.
            .LoadContentFrom("AjaxContent", "Window") // Define the Action and Controller names.
        )
    

See Also

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