<ej-grid id="TagsGrid" allow-paging="true" datasource="@ViewBag.dataSource" query-cell-info="cellinfo">
...
<e-columns>
...
<e-column header-Text="Manage Records">
<e-column-commands>
<e-column-command type="edit">
<e-button-options content-type="TextOnly" text="Edit"></e-button-options>
</e-column-command>
</e-column-commands>
</e-column>
</e-columns>
</ej-grid>
<script type="text/javascript">
function cellinfo(e) {
if (e.column["headerText"] == "Manage Records" && e.data["customerID"] == "ANATR") {
$(e.cell).find('.e-button').ejButton({ enabled: false }); //disable the button in the manage record column.
}
}
</script> |