Sometimes you may like to handle the server side events for the custom command buttons.
Since we don’t have server side events support for custom command buttons, we can achieve it using the below workaround.
The template feature of the grid is used to bind the custom button to the grid.
The OnServerRecordClick event of the Grid is enabled in order to trigger the server side record click event.
The button created using column template is converted to ejButton.
On the click event of the button, the recordClick of the grid is explicitly triggered and the arguments are passed explicitly to the recordClick event of the grid.
At the server side event of the recordClick, the target details and the selectedRecord details are obtained in the GridEventArgs.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
|4886||05/15/2015||09/30/2015||ASP.NET Web Forms||Grid|