The code shared by Princy is working as intended, if this is not working for you, then there must be something else you are doing. You could share some source code with us and we will take a look why this could happen.
Here is a demo sample of Princy's approach:
Add the following Markup to an ASPX page:
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" Width="800px" OnNeedDataSource="RadGrid1_NeedDataSource" OnItemCommand="RadGrid1_ItemCommand" AutoGenerateDeleteColumn="true">
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
Add the following C# code in the aspx.cs file:
protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
(sender as RadGrid).DataSource = Enumerable.Range(1, 2).Select(x => new
ID = x,
Desc = "Description " + x
protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
if (e.CommandName == "Delete")
Label1.Text += "Delete button was clicked <br />";
else if (e.CommandName == "RowClick")
Label1.Text += "Row was clicked <br />";
Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).