0 Comments

If you want to add a class to a kendo grid column, use the columns.attributes:

 

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [ {
    field: "name",
    title: "Name",
    attributes: {
      "class": "table-cell",
      style: "text-align: right; font-size: 14px"
    }
  } ],
  dataSource: [ { name: "Jane Doe" }, { name: "John Doe" }]
});
</script>

 

http://docs.kendoui.com/api/web/grid

One Reply to “How to add a CSS class to a kendo grid column”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Posts

Data flows and good DDD architecture in .NET Core and Entity Framework (EF)

0 Comments

      # Introduction From the blog post at https://medium.com/@jpdeffo/domain-driven-design-ddd-in-microservice-architecture-for-nutshell-19c7c579009a and code at https://github.com/Defcoq/DDD  I have learned how to architect a .NET Core project by using DDD principals. The main thing you will have to realize, when you come from a layered architecture, is that the logical flow of data, does not correspond with the project references in Visual Studio.              # Logical dataflow…