|
<ej:Grid ID="FlatGrid" runat="server"
AllowPaging="True" OnServerCommandButtonClick="FlatGrid_ServerCommandButtonClick">
<Columns>
<ej:Column Field="EmployeeID" HeaderText="Order ID" IsPrimaryKey="true" TextAlign="Right">
</ej:Column>
<ej:Column HeaderText="Employee Details" TextAlign="Center" Width="150">
<Command>
<ej:Commands Type="accept">
<ButtonOptions Text="Accept" Width="100"></ButtonOptions>
</ej:Commands>
<ej:Commands Type="reject">
<ButtonOptions Text="Reject" Width="100"></ButtonOptions>
</ej:Commands>
</Command>
</ej:Column>
</Columns>
</ej:Grid>
[in code behind]
protected void FlatGrid_ServerCommandButtonClick(object sender, GridEventArgs e)
{
//code corresponding to any custom operation
} |