@onclick:stopPropagation isn't working in RadzenCheckBox

I tried to use RadzenDropDownDataGrid according to your documentation
https://blazor.radzen.com/dropdown-datagrid

<Template Context="data">
      <RadzenCheckBox InputAttributes="@(new Dictionary<string,object>(){ { "aria-label", "select item" }})" TriState="false" Value="@(values != null && values.Contains(((Customer) data).CustomerID))"
              TValue="bool" Change=@(args => grid.SelectItem(data)) @onclick:stopPropagation/>
</Template>

But the above code part gives the following error.

Hi @Vibuda_Siromin,

Our online demo seems to work fine. You can try @onclick:stopPropagation="true" to see if it makes a difference.

No, it tried @onclick:stopPropagation="true". It gave the same error.

I'm having the same problem, did you ever resolve this?

I resolved my issue and sharing what I did in case it helps anyone else.

I'm new to Radzen and new to Blazor, so this might be really basic.

For some reason, I had to add a @using for Microsoft.AspNetCore.Components.Web, despite the fact that this already exists in my _Imports.razor file. After this, it works as expected.

And finally, I now realise that _Imports.razor applies to the folder it's in and all subfolders. My pages were in a different folder structure, so they weren't picking it up.