javascript - Kendo ui grid command template click link to function -
how make click event of template? not going function.
command: [{ name: "openmovemodal", template: "<a class='k-grid-decreaseindent k-button'><span class='fa fa-arrows'></span></a>", click: openmovemodal }
function
function openmovemodal(e) { e.preventdefault(); var dataitem = this.dataitem($(e.currenttarget).closest("tr")); }
assign onclick event template.
template: "<a class='k-grid-decreaseindent k-button' onclick='openmovemodal($(this))' ><span class='fa fa-arrows'></span></a>"
here small dojo example
Comments
Post a Comment