I have a very basic kendo grid. I am using template feature to style cell data. What I want to do is style "Edit" in red and "Delete" in green color.
GRID CODE
grid = $("#grid").kendoGrid({
dataSource: {
data: createRandomUserData(),
schema: {
model: {
id: 'Id',
fields: {
FirstName: {
type: "string"
},
Action: {
type: "string"
}
}
}
}
},
columns: [
{
field: "FirstName",
title: "First Name"
},
{
field: "Action",
title: "Action",
template: "<span style='color:red'>#: Action #</span>"
}
]
}).data("kendoGrid");
How can I do it. I am unable to separate cell data.
JSFiddle - http://jsfiddle.net/Sbb5Z/1338/