title: Kendo UI Grid displayed in a Kendo Window as a modal dialog posts back to a new blank page
body: <p>I am using a Kendo UI Grid inside a Kendo UI Window in my ASP.NET MVC 4 application. The window that the grid is displayed in is modal.</p>
  
  <p>Here's the definition of the Kendo UI Window.</p>
  
  <pre><code>@(Html.Kendo().Window()
      .Name("BackupSearchResultsPopupWindow")
      .Draggable()
      .Actions(actions =&gt; actions.Close())
      .AutoFocus(true)
      .Modal(true)
      .Events(events =&gt; { events.Close("OnBackupSearchResultsPopupWindowClose"); })
      .Width(600)
      .Height(400)
      .Title("Requestors matching your search query")
      .Visible(false)
  </code></pre>
  
  <p>When I display this window, it displays fine and the grid inside it has data, but when I try to sort the grid by any of its columns by clicking on the column header, the grid posts back to its controller action rightly but the modal window is gone and so is the page behind the modal window and the browser is refreshed to a new page that is to have the grid results.</p>
  
  <p>Also, the grid results do not display.</p>
  
  <p>Here is the code inside the razor view that has the window.</p>
  
  <pre><code>@(Html.Kendo().Grid&lt;Backup&gt;()
  .Name("MatchingBackupsGrid")
  .Columns(col =&gt;
      {
          col.Bound(backup =&gt; backup.BackupUId).Title("UID");
          col.Bound(backup =&gt; backup.BackupFirstName).Title("First Name");
          col.Bound(backup =&gt; backup.BackupLastName).Title("Last Name");
      })
      .Pageable()
      .Sortable()
      .Scrollable()
      .Selectable(sel =&gt;
      {
          sel.Mode(GridSelectionMode.Single);
          sel.Type(GridSelectionType.Row);
      })
      .DataSource(dataSource =&gt; dataSource            
           .Server()
           .Read(read =&gt; read.Action("SearchForBackup", "Arr", 
                              new { lastName = ViewBag.SearchTerm }))
           .Model(model =&gt; model.Id(b =&gt; b.BackupUId)))
  
           .BindTo(Model)
      )
  </code></pre>