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

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -