or
01.public class MyClass02.{03.public MyClass()04.{05.AssociatedObject=new AssociatedObject();06.}07.public AssociatedObject AssociatedObject08.{get; set;}09.}10.public class AssociatedObject11.{12.public AssociatedObject()13.{14.//do something15.}16.}function onTreeDataBound () { $("input:checkbox[name=checkedNodes]").on('click', function () { var checkedStatus = $(this).is(':checked'); $(this).closest(".k-item").find(".k-group .k-item input:checkbox[name=checkedNodes]").each(function () { $(this).attr('checked', checkedStatus); }); }); }<h2>Awards Listed By Programs</h2>@(Html.Kendo().Grid<Scholarship2013.Models.Category>() .Name("Grid") .Columns(columns => { columns.Bound(p => p.CategoryID); columns.Bound(p => p.CategoryDescription); }) .ClientDetailTemplateId("employeesTemplate") .Pageable() .DataSource(dataSource => dataSource .Ajax() .Read(read => read.Action("Program_Read", "Student")) .PageSize(10) ) .Sortable() //.Events(events => events.DataBound("dataBound")))<script> function dataBound() { this.expandRow(this.tbody.find("tr.k-master-row").first()); }</script> <script id="employeesTemplate" type="text/kendo-tmpl"> @(Html.Kendo().TabStrip() .Name("TabStrip_#=CategoryID#") .SelectedIndex(0) .Items(items => { items.Add().Text("Awards").Content(@<text> @(Html.Kendo().Grid<Scholarship2013.Models.Award>() .Name("Awards_#=CategoryID#") .ClientDetailTemplateId("awarddetailTemplate") .Columns(columns => { columns.Bound(o => o.AwardID).Width(101); columns.Bound(o => o.AwardName).Width(140); columns.Bound(e => e.AwardName) .ClientTemplate("# if(AwardDetails[0].IsApplicationOpen >= 0 && AwardDetails[0].IsApplicationClosed < 0) {# <span class='redfont'>*</span> #=AwardName# #} else {# #=AwardName# #} #") .Width(500); }) .DataSource(dataSource => dataSource .Ajax() .Read(read => read.Action("Award_Read", "Student", new { categoryID = "#=CategoryID#" })) ) .Pageable() .Sortable() .ToClientTemplate() ) </text> ); }) .ToClientTemplate() ) </script><script id="awarddetailTemplate" type="text/kendo-tmpl"> @(Html.Kendo().TabStrip() .Name("AwardDetailTabStrip") .SelectedIndex(0) .Items(items => { items.Add().Text("Award Details").Content(@<text> <div id="details-container2"> @* <h2>#= AwardName #</h2>*@ <dl> @*<dt>Award Name: #= AwardName #</dt> *@ <dt> Award Detail ID: #= AwardDetails[0].AwardDetailID #</dt> <dt> Award Amount: #= AwardDetails[0].AwardAmount #</dt> <dt> Number of Awards: #= AwardDetails[0].NumberOfAwards #</dt> <dt> Criteria: #= AwardDetails[0].ConditionsText #</dt> <dt> Deadline: #= AwardDetails[0].ApplicationDeadlineDate #</dt> <dt> Special Instructions: #= AwardDetails[0].SpecialInstructions #</dt> </dl> </div></text> ); }) .ToClientTemplate() )</script>columns.Bound(e => e.AwardName) .ClientTemplate("# if(AwardDetails[0].IsApplicationOpen >= 0 && AwardDetails[0].IsApplicationClosed < 0) {# <span class='redfont'>*</span> #=AwardName# #} else {# #=AwardName# #} #") .Width(500);01.<script type="text/javascript">02. var Grid = null;03. var DataSource = new kendo.data.DataSource({04. transport: {05. read: { url: "GetData" },06. destroy: { url: "DeleteData" },07. update: { 08. url: "UpdateData",09. type: "POST",10. complete: function (e) {11. Grid.data("kendoGrid").dataSource.read();12. }13. },14. create: {15. url: "CreateData",16. type: "POST",17. complete: function (e) {18. Grid.data("kendoGrid").dataSource.read();19. }20. },21. parameterMap: function (options, operation) {22. switch (operation) {23. case "destroy":24. return { id: options.Id };25. case "create":26. return { name: options.Name, width: options.Width, height: options.Height };27. default:28. return { take: options.take, skip: options.skip };29. }30. }31. },32. schema: {33. data: "d.Data",34. total: "d.Total",35. model: {36. id: "Id",37. fields: {38. Id: { editable: false },39. Name: { editable: true },40. Width: { editable: true },41. Height: { editable: true },42. Code: { editable: true }43. }44. },45. errors: "d.ErrorMessage"46. },47. pageSize: 20,48. serverPaging: true,49. error: function (response) {50. this.cancelChanges();51. }52. });53. 54. $(document).ready(function () {55. Grid = $("#md-contentGrid").kendoGrid({56. dataSource: DataSource,57. height: "100%",58. pageable: true,59. toolbar: [60. { name: "create" }61. ],62. columns: [63. { field: "Name" },64. { field: "Width" },65. { field: "Height" },66. { command: [67. "edit",68. "destroy",69. ], title: " ", width: "300px"70. }71. ], editable: "inline"72. });73. });74.</script>