|
<ej:Grid ID="FGrid" runat="server" AllowPaging="true">
<PageSettings PageSize="5" />
<ClientSideEvents QueryCellInfo="QueryCellInfo" />
<Columns>
<ej:Column Field="OrderID" IsPrimaryKey="true" />
<ej:Column Field="CustomerID" EditType="StringEdit" />
<ej:Column Field="ShipCity" />
<ej:Column HeaderText="Manage Records" Width="130">
<Command>
<ej:Commands Type="delete">
<ButtonOptions Text="Delete"></ButtonOptions>
</ej:Commands>
</Command>
</ej:Column>
</Columns>
</ej:Grid>
<script>
function QueryCellInfo(e) {
if (e.column["headerText"] == "Manage Records"
&& e.data["CustomerID"] == "BOLID") {
$(e.cell).find('.e-button').ejButton({ enabled: false });
//disable the button in the manage record column.
}
}
</script> |