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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -