New to Kendo UI for jQuery? Start a free 30-day trial

Specifies the icon of the item.

Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category" },
    { field: "unitPrice" }
  ],
  dataSource: [
    { productName: "Tea", category: "Beverages", unitPrice: 2.5 },
    { productName: "Coffee", category: "Beverages", unitPrice: 3.0 }
  ],
  contextMenu: {
    head: [
      {
        name: "actions",
        text: "Actions",
        items: [
          { name: "edititem", text: "Edit", icon: "k-icon k-i-edit", command: "edit" },
          { name: "deleteitem", text: "Delete", icon: "k-icon k-i-delete", command: "destroy" }
        ]
      }
    ]
  }
});
</script>

The name of the SVG icon.

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category" },
    { field: "unitPrice" }
  ],
  dataSource: [
    { productName: "Tea", category: "Beverages", unitPrice: 2.5 },
    { productName: "Coffee", category: "Beverages", unitPrice: 3.0 }
  ],
  contextMenu: {
    head: [
      {
        name: "actions",
        text: "Actions",
        items: [
          { name: "edititem", text: "Edit", icon: { name: "k-icon k-i-edit" }, command: "edit" },
          { name: "deleteitem", text: "Delete", icon: { name: "k-icon k-i-delete" }, command: "destroy" }
        ]
      }
    ]
  }
});
</script>

The SVG icon variant. Supported values are outline, solid, and duotone. The variant applies to SVG rendering and is ignored for font icons.

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "productName" },
    { field: "category" },
    { field: "unitPrice" }
  ],
  dataSource: [
    { productName: "Tea", category: "Beverages", unitPrice: 2.5 },
    { productName: "Coffee", category: "Beverages", unitPrice: 3.0 }
  ],
  contextMenu: {
    head: [
      {
        name: "actions",
        text: "Actions",
        items: [
          { name: "edititem", text: "Edit", icon: { name: "k-icon k-i-edit", variant: "outline" }, command: "edit" },
          { name: "deleteitem", text: "Delete", icon: { name: "k-icon k-i-delete", variant: "outline" }, command: "destroy" }
        ]
      }
    ]
  }
});
</script>