or
var gridData = new kendo.data.DataSource({ transport: transport, serverPaging: true, serverSorting: true, serverFiltering: true, schema: { ... }, pageSize: 50, autoSync: true, error: gridHelper.error});grid.kendoGrid({ dataSource: gridData, sortable: true, navigatable: true, editable: true, scrollable: { virtual: true }, resizable: true, selectable: 'row'});@model Product@using(Html.BeginForm("InsertProduct","Product")){ Html.TextBoxFor(val => val.Name); Html.TextBoxFor(val => val.Id); }<button id="addButton">Add</button> <script type="text/javascript"> $(document).ready(function () { var window = $("#window").kendoWindow({ height: "200px", modal: true, title: "Centered Window", visible: false, width: "200px" }).data("kendoWindow"); });$("#addButton ").click(function () { var window = $("#window").data("kendoWindow"); window.content("@Html.Partial("PartialViewSample ",new Product()).ToHtmlString()"); window.center(); window.open(); });