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

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

How to merge four videos on one screen with ffmpeg -

c - getting error: cannot take the address of an rvalue of type 'int' -