or
In my application I need to set a class of the <td> element for all cells in the grid. If done at the column level via column.attributes = {class: 'myClass'} everything works great. Unfortunately I need to do this on a per-cell basis. Specifically different cells in the same column will have different classes applied to the <td> element based on the bound data object. Is there a way to set attributes on per-cell basis, or is there an alternative approach to achieving my goal?
Thanks a lot.
var ds = new kendo.data.DataSource({ transport: { read: { url: "/api/admin/users/someUser/roles", dataType: "json" }, destroy: { type: "DELETE", url: "/api/admin/users/someUser/roles", dataType: "json" } }, schema: { model: { id: "roleName", fields: { roleName: { editable: false } } } }});$grid.kendoGrid({ dataSource: ds, editable: true, columns: [ { field: 'roleName', title: 'Role' }, { command: ['destroy'], title: ' ', width: '120px' } ]});buttonGroup: { base: function (options, initializer, element) { var items = options.buttons, item; element.data({ type: "buttonGroup" }); element.attr(KENDO_UID_ATTR, options.uid); for (var i = 0; i < items.length; i++) { if (!items[i].uid) { items[i].uid = kendo.guid(); } item = initializer($.extend({mobile: options.mobile}, items[i])); item.appendTo(element); }