or
@( Html.Kendo().Window() .Name("popupSplitter") .Title("Popup Splitter") .Draggable(true) .Modal(true) .Content( @<text><div> @RenderSplitter()</div> </text>) .Width(600) .Height(450) .Visible(false))@helper RenderSplitter(){ @Html.Kendo().Splitter() .Name("MySplitter") .Orientation(SplitterOrientation.Horizontal) .HtmlAttributes(new { style = "width: 100%; height: 400px; " }) .Panes(hPanes => { hPanes.Add() .Size("200px") .MinSize("100px") .Content( @<text> @RenderTreeView() </text> ) .HtmlAttributes(new { id = "left_pane" }); hPanes.Add() .Scrollable(true) .HtmlAttributes(new { id = "right_pane" }); .Content( @<text><p>test</p></text> ); })}<button class="k-button" id="btnAdd" onclick="addSomething()"><span class="k-icon k-add"></span></button>function addSomething() { var window = $("#popupSplitter ").data("kendoWindow"); window.center(); window.open();}Questions in the image in attachemnt since I get a "invalid post content" message.
SerializerSettings = new JsonSerializerSettings{ ContractResolver = new DefaultContractResolver { IgnoreSerializableAttribute = true, IgnoreSerializableInterface = true }, PreserveReferencesHandling = PreserveReferencesHandling.Objects, ReferenceLoopHandling = ReferenceLoopHandling.Ignore};{ "$id": "1", "Data": [ { "$id": "2", "Aktiv": false, "AktualisiertAm": "2013-05-16T11:05:20.273", "AktualisiertVon": "abascore", "Bemerkung": "", "Bezeichnung": "Child", "ErzeugtAm": "2013-05-16T11:05:20.273", "ErzeugtVon": "abascore", "Id": "615cba40-7c17-4a98-9371-443310947b81", "ParentId": "c6113c45-bd23-44d3-bfa2-470f647adc75", "Nr": 1, "Rowverion": "AAAAAAAAorQ=", "Sprache": "de-de", "Status": 0, "Parent": { "$id": "3", "Branche": "", "MaAnzahl": 2, "PoG": 1, "UnternehmenGroesse": 0, "Child": [ { "$ref": "2" }, { "$id": "4", "Aktiv": false, "AktualisiertAm": "2013-07-03T18:31:00.953", "AktualisiertVon": "abascore", "Bemerkung": "", "Bezeichnung": "Child2", "ErzeugtAm": "2013-07-03T18:31:00.953", "ErzeugtVon": "abascore", "Id": "6662074d-2682-4c2d-a4fc-c01ae9eb7cfc", "ParentId": "c6113c45-bd23-44d3-bfa2-470f647adc75", "Nr": 2, "Rowverion": "AAAAAAACOlE=", "Sprache": "de-de", "Status": 0, "Parent": { "$ref": "3" } } ], "AktualisiertAm": "2013-05-16T11:05:05.333", "AktualisiertVon": "abascore", "Bemerkung": "", "Bezeichnung": "Parent", "Descriminator": "MAND", "Email": "Parent@masdnad.asda", "ErzeugtAm": "2013-05-16T11:05:05.333", "ErzeugtVon": "abascore", "Id": "c6113c45-bd23-44d3-bfa2-470f647adc75", "Logo": "", "Mobil": "", "Name0": "Parent", "Name1": "", "Nr": 1, "Ort": "München", "Plz": "12345", "Postfach": "", "Rowverion": "AAAAAAAAorI=", "SatzQuelle": null, "Staat": "Parentland", "Strasse": "Parentenstrasse", "Telefon": "", "Website": "", "Ansprechpartners": [] } }, { "$ref": "4" } ], "Total": 2, "AggregateResults": null, "Errors": null}Uncaught TypeError: Cannot read property 'Bezeichnung' of undefined(anonymous function)T.extend._rowsHtml kendo.all.min.js:18T.extend.refresh kendo.all.min.js:18b.isFunction.i jquery.min.js:3i.extend.trigger kendo.all.min.js:9nt.extend._process kendo.all.min.js:11nt.extend.success kendo.all.min.js:11b.isFunction.i jquery.min.js:3n.success kendo.all.min.js:11c jquery.min.js:3p.fireWith jquery.min.js:3k jquery.min.js:5r@(Html.Kendo().IntegerTextBoxFor(m => m) .Enable(false) .Spinners(false).....@(Html.Kendo().IntegerTextBoxFor(m => m)...
Sorry I am getting "Invalid post content." when trying to paste the code in this post so I have attached it as an image.
01.<div id="editLocalEventModal" title="Edit Local Vessel" style="overflow: scroll; display: none;">02. <form method="post" id="formEditLocalVessel">03. 04. <div style='text-align: center; background: gray; color: #ffffff; font-size: 15px; height: 22px; width: 100%;'>General Event Information</div>05. <div style='margin: 5px 5px 0px 5px'>06. <label for='vesselNum'>Vessel #: </label>07. <input id='vesselNum' style='width:60px' type='text' disabled value='@ViewBag.VesselNum' /> 08. <label for='vesselName'>Vessel Name: </label>09. <input id='vesselName' style='width:350px' type='text' disabled value='@ViewBag.VesselName' /> 10. <input type='checkbox' id='AgentCalled' @ViewBag.AgentCalled/><label for='AgentCalled'>Agent Called</label> 11. <input type='checkbox' id='Quarantine' @ViewBag.Quarantine/><label for='Quarantine'>Quarantine</label> 12. <input type='checkbox' id='COTP' @ViewBag.COTP/><label for='COTP'>COTP</label> 13. <input type='checkbox' id='Announce' @ViewBag.Announce/><label for='Announce'>Announce</label>14. </div>15. <br />16. <div style='text-align: center; background: gray; color: #ffffff; font-size: 15px; height: 22px; width: 100%;'>Activity Details</div>17. <div>18. @(Html.Kendo().Grid((IEnumerable<Maris.Domain.VEGetAttrDetailForVEidLocal_Result>)ViewBag.Fields)19. .Name("editLocalEventDetail")20. .HtmlAttributes(new { style = "width:1100px; margin:0;" })21. .DataSource(dataSource => dataSource22. .Ajax()23. .Batch(true)24. .ServerOperation(false)25. .PageSize(200)26. .Model(model => { model.Id(d => d.VEDDId); 27. //model.Field(d => d.VEDADesc); 28. model.Field(p => p.VEDDId).Editable(false);29. model.Field(p => p.PortID);30. model.Field(p => p.VEDDDate);31. model.Field(p => p.VEDDTime);32. model.Field(p => p.VEDDComment);33. model.Field(p => p.VEDStatusID);34. })35. //.Read(read => read.Action("EditingCustom_Read","EventSummary"))36. )37. .ToolBar(toolBar =>38. {39. //toolBar.Save();40. toolBar.Create();41. })42. .Columns(columns =>43. {44. columns.ForeignKey(d => d.VEDAId, (System.Collections.IEnumerable)ViewData["AttrDropDown"], "VEDAId", "VEDADesc")45. .Title("Attribute").Width(200);46. columns.ForeignKey(d => d.PortID, (System.Collections.IEnumerable)ViewData["PortsListsDropDown"], "PortId", "PortShortName").Title("Port").Width(80);47. columns.Bound(d => d.VEDDDate).Format("{0:MM/dd/yyyy}").Title("Date").Width(100).EditorTemplateName("Date");48. columns.Bound(d => d.VEDDTime).Format("{0:HH:mm}").Title("Time").Width(100).EditorTemplateName("Time");49. columns.Bound(d => d.VEDDComment).Title("Comments").Width(300);50. columns.ForeignKey(d => d.VEDStatusID, (System.Collections.IEnumerable)ViewData["StatusDropDown"], "VEDStatusID", "VEDStatusAbbr").Title("Status").Width(80);51. })52. .Scrollable(scr => scr.Height(400))//will be overriden in splitter layoutchange event.53. .Resizable(resize => resize.Columns(true))54. .Events(events => events.Edit("onEdit")) // .Change("onChange")55. .Editable(editable => editable.Mode(GridEditMode.InCell).CreateAt(GridInsertRowPosition.Bottom))56. )57. </div>58. <br />59. <div style='text-align: center; background: gray; color: #ffffff; font-size: 15px; height: 22px; width: 100%;'>Comments</div>60. <div>61. <textarea id='txtComment' rows='3' style='width: 99.5%; border: 0'>@ViewBag.Comment</textarea>62. </div>63. <div style="text-align: center;">64. <input type="button" id="btnUpdate" value="Save" /> <input type="button" id="btnClose" value="Close" />65. </div>66. </form>67.</div>68. 69.<script>70. 71. function onEdit(arg) {72. alert("hello");73. // suggestions..74. }75. 76. 77.</script>