We recommend you to use @onclick event that will not be triggered on row rendering. The @ symbol informs the complier that the event have an executable method. The onclick without `@` is a JavaScript event. Here is the code with @onclick event,
<GridColumn Field=@nameof(Order.OrderID) HeaderText="Action" TextAlign="TextAlign.Center" AutoFit="true"> <Template> @{ var rule = (context as Order); <a rel='nofollow' href="#" title="View" @onclick="@(() => OnUserActionClick(rule.RuleId, Common.UserAction.View))"> <span class="custom-icons e-icons e-preview" /> a> } Template> GridColumn> |