Edit this page

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="treelist"></div>
    columns: [
      { field: "lastName" },
        field: "position",
        attributes: {
          "class": "highlight",
          style: "text-align: right"
    dataSource: [
      { id: 1, parentId: null, lastName: "Jackson", position: "CEO" },
      { id: 2, parentId: 1, lastName: "Weber", position: "  VP, Engineering" }
  .highlight {
    color: red;

The table cells would look like this: <td class="name-cell" style="text-align: right">...</td>.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article