How to add button in kendo grid using jquery

Below code can be used to add a button in kendo grid.

 ex:           {
                    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,

function btnEdit(e) {   
   //Do something here
}

Comments

Popular posts from this blog

How to get the user details, user current level, next level, Rank in sql server

How to update the user level when ever user report any tweet in sql

Implement virtualisation in kendo drop down list using jquery ajax in mvc, aspx page