or
var grid = $("#copyHierarchyGrid").data('kendoGrid');var allSelected = grid.select();var element = $("#copyHierarchyGrid").kendoGrid({ dataSource: { type: "jsonp", transport: { read: '/AdministerRates/GetCombinedRatesToCopy?collection=' + sCollection }, pageSize: 6, serverPaging: false, serverSorting: false }, scrollable: false, height: 'auto', sortable: false, pageable: false, detailInit: detailInit, selectable: "multiple", dataBound: function () { this.expandRow(this.tbody.find("tr.k-master-row")); }, columns: [ { field: "", title: "Select All", width: "75px" }, { field: "ProductTypeName", title: "Product Type", width: "auto" } ] , rowTemplate: kendo.template($("#rowTemplate").html()) }).data('kendoGrid');<script id="rowTemplate" type="text/x-kendo-tmpl"> <tr data-uid="#: uid #" class="assignment-table-row1 k-master-row"> <td class="k-hierarchy-cell"><a class="k-icon k-plus" href="\\#" tabindex="-1"></a></td> <td class="photo"> <input type="checkbox" class="checkParent" onchange="javascript:testing('#: ProductTypeName#', this)" /> </td> <td>#:ProductTypeName#</td> </tr></script><script id="detailRowTemplate" type="text/x-kendo-tmpl"> <tr data-uid="#: uid #" id="#: uid #"> <td> <input type="checkbox" class="checkChild" onchange="javascript:testing('#: SourceProductId#')" /> </td> <td>#:SourceProductName#</td> <td>#:SourceStartDate#</td> <td>#:SourceEndDate#</td> <td>#:TargetProductName#</td> <td>#:TargetStartDate#</td> <td>#:TargetEndDate#</td> </tr></script>function detailInit(e) { debugger $("<div/>").appendTo(e.detailCell).kendoGrid({ dataSource: e.data.ProductDetails, scrollable: true, sortable: false, pageable: false, columns: [ { field: "SourceProductId", title: "Select Rate", }, { field: "SourceProductName" }, { field: "SourceStartDate" }, { field: "SourceEndDate" }, { field: "TargetProductName" }, { field: "TargetStartDate" }, { field: "TargetEndDate" } ], selectable: "multiple", rowTemplate: kendo.template($("#detailRowTemplate").html()), editable: true }); }@model SignupList.Models.FormGroupViewModel@{ ViewBag.Title = "FormGroup";}<h2>Group Form </h2> <div> @{ Html.RenderPartial("GroupForm"); } </div><%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GroupForm.ascx.cs" Inherits="SignupList.Views.Group.GroupForm" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI.ComboBox" tagprefix="cc1" %><h2>Join Form</h2><p>Create the membership form.</p><form id="form1" runat="server"> <telerik:RadTextBox ID="InputDateTimeWidth" InputType="Number" EmptyMessage="Pixels" Columns="12" MaxLength="10" RunAt="server"></telerik:RadTextBox></form>{"Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerWrapper'."}