or
01.productsDataSource = new kendo.data.DataSource({02. autoSync: true,03. pageSize: 10,04. serverPaging: true,05. serverSorting: true,06. serverFiltering: true,07. //serverGrouping: true,08. schema: {09. data: "data",10. total: "count", // THIS needs to be read from X-Total:31067 - line 9 in the code block below.11. model: {12. fields: {13. name: {type: "string"},14. description: {type: "string"},15. id: {type: "number"}16. }17. }18. }19.});01.Server:nginx/1.6.0 + Phusion Passenger 4.0.4202.Status:200 OK03.X-Meta-Request-Version:0.3.404.X-Next-Page:205.X-Page:106.X-Powered-By:Phusion Passenger 4.0.4207.X-Request-Id:1fd5e3b7541e7c0fee888b3799a2699008.X-Runtime:0.23825509.X-Total:3106710.X-Total-Pages:124311.X-UA-Compatible:IE=Edge,chrome=1In 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' } ]});