or
<div id="control">control</div>
<div id="base" style="width:600; height:400">
<div id="container1" style="width:200; height:100"></div>
<div id="container2" style="width:200; height:100"></div>
</div>
<script>
$(document).ready(function() { $("#control","#container1","#container2").kendoDraggable({
hint: function(e) { return e.clone();}
});
$("#base","#container1","#container2").kendoDropTarget({
drop: function(e) { this.element.append(e.draggable.currentTarget.clone()); }
});
});
</script>Whenever I drop the control to "base" or "container1" or "container2", the drop event was only triggered by "base" only. Can I trigger the drop event in "container1" if I drop the control into it?
Thank you.
$("#gridEmailAddress").kendoGrid({ . . toolbar: ["create", "save", "cancel"]});@(Html.Kendo().Grid(Model) .Name("Grid") .HtmlAttributes(new { @style = "width:500px;" }) .Editable(editable => editable.Mode(GridEditMode.PopUp).DisplayDeleteConfirmation(true) .TemplateName("Grid") .Window(w => w.Title("Product") .Name("grdWindow") .Animation(true) .HtmlAttributes(new { @style = "width:500px;" }).Modal(true))) .Columns(column => { column.Bound(p => p.ProductID).Width(120); column.Bound(p => p.ProductName).Width(200); column.Bound(p => p.Color).Width(120); column.Command(command => { command.Edit(); command.Destroy(); }).Width(420); }) .Pageable(pager => pager.PageSizes(true).PreviousNext(true )) .Sortable() .Selectable() .DataSource(datasource => datasource .Server().PageSize(5) .Update("EditProduct", "Home") .Destroy("DeleteProduct", "Home") .Model(model => model.Id(p => p.ProductID)) ) )<div id="treeview"></div><div id="treeview2"></div><script> function MakeTreeview(parent, child) { var serviceRoot = "http://demos.kendoui.com/service"; homogeneous = new kendo.data.HierarchicalDataSource({ transport: { read: { url: serviceRoot + "/Employees", dataType: "jsonp" } }, schema: { model: { id: "EmployeeId", hasChildren: "HasEmployees" } } }); $(parent).kendoTreeView({ dataSource: homogeneous, dataTextField: "FullName", select: child != null ? function (e) { MakeTreeview(child, null); } : null }); } MakeTreeview("#treeview", "#treeview2");</script>