columns.attributes Object
HTML attributes of the table cell (<td>
) rendered for the column.
HTML attributes which are JavaScript keywords (e.g. class) must be quoted.
Example - specify column HTML attributes
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
columns: [ {
field: "name",
title: "Name",
attributes: {
"class": "table-cell k-text-right",
style: "font-size: 14px"
}
} ],
dataSource: [ { name: "Jane Doe" }, { name: "John Doe" }]
});
</script>
The table cells would look like this: <td class="table-cell" style="text-align: right; font-size: 14px">...</td>
.