or
<ul data-role="actionsheet" id="inboxActions" data-open="onOpen" data-popup='{"direction": "left"}'> <li class="km-actionsheet-title">Monday Meeting:</li> <li><a href="#" data-action="reply">Reply</a></li> <li><a href="#" data-action="replyAll">Reply All</a></li> <li><a href="#" data-action="archive">Archive</a></li></ul><ul data-role="actionsheet" id="inboxActions" data-open="onOpen" data-popup='{"direction": "left"}'> <li class="km-actionsheet-title">Monday Meeting:</li> <li><a href="#" data-action="singleEventHandler">Reply</a></li> <li><a href="#" data-action="singleEventHandler">Reply All</a></li> <li><a href="#" data-action="singleEventHandler">Archive</a></li></ul>function singleEventHandler(e) { if (<some test involving e>) { $("#actionResult").html("Replying to message #" + e.context); } else if (<some other test involving e>) { $("#actionResult").html("Replying to all in message #" + e.context); } else if (<some other test involving e>) { $("#actionResult").html("Archiving message #" + e.context); }
doMoreStuff();}columns.Bound(p => p.URL).Title("Url").Visible(false);columns.Template(p => p.TRACKINGNUMBER).ClientTemplate( "<a href='#= URL #'>#= TRACKINGNUMBER #</a>" ).Title("Tracking Number");<li data-bind="invisible: #= console.log(this) #"> <span>test</span></li>Fires when the drop-down list has received data from the data source.
$("#dropdownlist").kendoDropDownList({
dataBound: function(e) {
// handle event
}
});
// get a reference to the dropdown list
var dropdownlist = $("#dropdownlist").data("kendoDropDownList");
// bind to the close event
dropdownlist.bind("dataBound", function(e) {
// handle event
});
var kendoWindowFactory = new function () { var __modalKendoWindow; var __functionCallback; this.createKendoWindow = createKendoWindow; this.createModalKendoWindow = createModalKendoWindow; this.modalReturn = modalReturn; function createKendoWindow(element) { var frameId = "___kendoWindow_" + element.id; var LINK = element.href; var TITLE = $(element).attr("data-title"); var WIDTH = $(element).attr("data-width"); var HEIGHT = $(element).attr("data-height"); if (!(parseFloat(WIDTH) > 0)) { WIDTH = "50%"; } if (!(parseFloat(HEIGHT) > 0)) { HEIGHT = "50%"; } var kendoWindow = document.getElementById(frameId); if (kendoWindow) { $(kendoWindow).data("kendoWindow").toFront(); } else { kendoWindow = $("<div />") .attr({ id: frameId }) .appendTo("body"); $(kendoWindow).kendoWindow({ title: TITLE, modal: false, width: WIDTH, height: HEIGHT, content: LINK, visible: false, deactivate: function () { this.destroy(); }, }).data("kendoWindow").center().open(); $(kendoWindow).css({ overflow: "none" }); } return false; } function createModalKendoWindow(element, functionCallback) { var frameId = "___kendoWindowModal_"; __modalKendoWindow = null; __functionCallback = functionCallback; var LINK = element.href; var TITLE = $(element).attr("data-title"); var WIDTH = $(element).attr("data-width"); var HEIGHT = $(element).attr("data-height"); if (!(parseFloat(WIDTH) > 0)) { WIDTH = "770px"; } if (!(parseFloat(HEIGHT) > 0)) { HEIGHT = "470px"; } var kendoWindow = document.getElementById(frameId); if (!kendoWindow) { kendoWindow = $("<div>").attr({ id: frameId }).appendTo("body"); } __modalKendoWindow = $(kendoWindow).kendoWindow({ title: TITLE, modal: true, width: WIDTH, height: HEIGHT, visible: false, deactivate: function () { this.destroy(); }, }).data("kendoWindow").center().refresh(LINK).open(); $(kendoWindow).css({ overflow: "none" }); return false; } function modalReturn(value) { __modalKendoWindow.close(); if (value) { if (__functionCallback) { __functionCallback(value); } } }}<script> $(function () { $('#tabMenu a').click(function (e) { e.preventDefault(); kendoWindowFactory.createKendoWindow(this); }); }); $(document).ready(function () { $("#tabMenu").kendoTabStrip(); }); </script><script type="text/javascript"> function returnValue(value) { document.getElementById("<%= txtCodigo.ClientID.ToString() %>").value = value; __doPostBack("Municipio.aspx", "txtCodigo_TextChanged"); } $(function () { $("#<%= btnConsultar.ClientID.ToString() %>").click(function (e) { e.preventDefault(); window.parent.kendoWindowFactory.createModalKendoWindow(this, returnValue); }); });</script><script type="text/javascript"> $(function () { $("#grvMunicipio").kendoGrid({ columns: [ { field: "Codigo", title: "Código" }, { field: "Descricao", title: "MunicÃpio" }, { field: "Uf", title: "Estado" } ], dataSource: { pageSize: 15 }, sortable: true, selectable: true, pageable: { refresh: true, pageSizes: true } }); $('#grvMunicipio').dblclick(function () { var Grid = $("#grvMunicipio").data("kendoGrid") Grid.select().each(function () { var dataItem = Grid.dataItem($(this)); RetornaValor(dataItem.Codigo); }); }); });</script>