javascript - Calling controller action from KENDO UI Grid Control using template definition -


i have kendo grid , fields , columns in populated datasource intern populated action.

now want bind particular cell content in grid controller action , pass id of cell also. how accomplish this. below code grid. find answers in kendo ui docs use html helpers achieve this. want in same style below. let take readername cell content binding required. tried before?

$("#eventsgrid").kendogrid(                             {                                 datasource: eventsdatasource,                             navigatable: true,                             pageable:                                 {                                 input: true,                                 numeric: false                                 },                              columns:[                             {                                 field:"",width:"30px", template:'<input type="checkbox" id="selectevent"/>'                             },                             {                                 field:"cardnumber",width:"80px"                             },                             {                                 field: "image", width: "45px", title: "type", template: "<img src='/content/themes/default/images/alarmtype.png' id='alarmtype'/>"                             },                             {                                 field: "priority", width: "60px", title: "priroty"                             },                             {                                 field: "origin", title:"event time"                             },                             {                                 field:"description", title:"alarm title"                             },                             {                                 field: "readername", title: "location"                             },                             {                                 field: "", title: "actions , interactions", width: "160px", template: '<input type="button" value="acknowledge" onclick="checkack" id="acknowledge" /><br/><a href="javascript:performactions()"  >3 actions</a>'                             },                             {                                 field: "image", title: "more", width: "60px", template: "<img src='/content/themes/default/images/door.png' onclick='showdetails()' id='door' width='20' height='20'/><div id='cardholderdetails'></div>"                             }                              ],                          }).data("kendogrid"); 

now have function calls $.post call parameters. function hooked click event of button. there different way this?


Comments