How to add button in kendo grid using jquery
Below code can be used to add a button in kendo grid.
function btnEdit(e) {
//Do something here
}
ex: {
command: [{
name: "edit",
className: "btn-Edit",
text: "Edit", click: btnEdit
}], title: "Action", media: "(min-width: 500px)", width: "220px"
}
command: [{
name: "edit",
className: "btn-Edit",
text: "Edit", click: btnEdit
}], title: "Action", media: "(min-width: 500px)", width: "220px"
}
In the above code,
className :- Defines the css class name
text :- Text displayed on button
click :- Function to be called when clicked on button
title:- Text displayed as grid column header
In this example we are calling btnEdit function on clicked,
//Do something here
}
Comments
Post a Comment