or
<div data-role="view" id="doc-Image" data-layout="default-layout" data-title="Report" > <img id="doc-Image-DocumentImage" alt="Document Type" src="../Report/1" style="width: 100%;"/></div>$("#test").click(function(e){ alert('inside click');});$("#treeView").kendoTreeView({ dataSource: [ { category: "A", nodes: [{name:"Node 1"}, {name:"Node 2"}]} ]});<script id="treeview-template" type="text/kendo-ui-template"> # if (item.category) { # #= item.category # # } # // How do I now tell it to render the "nodes" element as children to the category element?</script><div id="domSelection" style="width:620px; height:300px"></div><script> $(document).ready(function() { $("#domSelection").kendoGrid({ dataSource: { data: addItems(), }, selectable: "multiple", pageable: true, scrollable: true, navigatable: true, columns: [ { field: "FirstName", title: "name", format: "{0:c}", type:"String",editable: false, width: "150px" }, { field: "add", title: "add", width: "120px" } ], editable: false }); $('#añadir').click(function () { var sourcegrid = $('#domSelection').data('kendoGrid'); //SOURCE GRID var destinationgrid = $('#Selection').data('kendoGrid'); // DESTINATION GRID sourcegrid.select().each(function () { var dataItem = sourcegrid.dataItem($(this)); var column = dataItem.FirstName; // whatever the name of the unique id for your data source alert(column); destinationgrid.dataSource.add(dataItem); // DESTINATION DATASOURCE }); destinationgrid.refresh(); // MUST REFRESH THE DESTINATION GRID }); }); </script> <div id="Selection" style="width:600px;"></div> <script> $(document).ready(function() { $("#Selection").kendoGrid({ dataSource: { }, selectable: "multiple", pageable: true, scrollable: true, navigatable: true, columns: [ { field: "FirstName", title: "name", format: "{0:c}", type:"String",editable: false, width: "150px" }, { field: "City", title: "city", editable:true, type:"Number", validation: { min: 1, required: true },width: "150px" }, {field: "BirthDate", title: "date", type:"String", editable: true, width:"150px"}, { command: ["edit", "destroy"], title: "Editar", width: "210px" }], editable: true }); }); </script>