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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -