There are cases in which you may want to trigger postback/ajax request to the server when the user clicks a grid data row
anywhere (not only when hitting a button/checkbox/other control in the row). This is the time when the new
autopostback-on-row-click feature of Telerik RadGrid comes handy.
To enable this new feature, just set the
ClientSettings -> EnablePostBackOnRowClick property of the grid to
true
(the default value is false). Thus when the user click an arbitrary cell in a grid row, a postback/ajax request will be started
automatically depending on the
EnableAJAX property setting of the control. To intercept the request and execute custom
logic from the code-behind, wire the
ItemCommand event of the grid (having in mind that you have to check whether
e.CommandName == "RowClick").
On this demo the clicked grid row will be selected server-side and the id of the chosen item will appear below the
grid status bar item.
More details you can find in the online documentation of the product:
Postback on client row click
How to start and handle postback/ajax requests from other client grid events you can learn from the knowledge base article
linked below:
Postback/Ajax request from grid client events