column.icon : string Default: undefined
Css class for icon that is going to be in use for the cell. This setting can be in use only with combination of type icon.
Examples
<table id="grid"></table>
<script>
$("#grid").grid({
dataSource: "../Grid/GetPlayers",
columns: [
{ field: "ID" },
{ field: "Name" },
{ field: "PlaceOfBirth" },
{ title: "", field: "Edit", width: 20, type: "icon", icon: "ui-icon-pencil", events: { "click": function (e) { alert("name=" + e.data.record.Name); } } }
]
});
</script>