Onclick handler not firing the first time on a RatzenTextNumericric

Here's the definition of the Grid:`
<RadzenDataGrid
@ref="grid"
Data="@details" TItem="DetailsModel"
AllowPaging="true" PageSize="20"
Density="Density.Compact"
EditMode="Radzen.DataGridEditMode.Single"
SelectionMode="DataGridSelectionMode.Single" @bind-Value=@selected
RowSelect="@OnRowSelect"
RowUpdate="@OnRowUpdate"
RowDeselect="@OnRowDeselect"
style="width:100%"
>
And this is the definition of my column:


<RadzenNumeric
@ref="numericHoev1"
@bind-Value="@data.BestD_Hoev1"
onclick="@OnClick"
onkeydown="@OnKeyDown"
Style="font-style:italic;
font-size:1rem;
outline:none;
border:none"
TabIndex="1000"
/>

The OnClick method fires only after the second.	`

This is my OnRowSelect handler:

	async Task OnRowSelect(DetailsModel d)
	{
		await grid.EditRow(d);
		edited = d;
	}

Hey @P806,

You can stop propagation of click event to avoid row selection when you click the Numeric component:

1 Like

Thank you for letting me know about the stoppropagating flag on the onclick event, but unfortunately, it does not seem to address the issue I was experiencing.

Upon further investigation, I realized that the problem was actually due to the fact that the textnumeric element did not exist at the time of the first click. Therefore, in order to resolve this issue, I will need to handle the onclick event at the datagrid level instead.