RadzenTemplateForm - Submit Property Question

Hello everyone,

I'm new to Radzen and I'm strunggling in bind my method to the Submit property in RadzenTemplateForm element.

If someone can give me a hand on this, I would appreciate :slight_smile:

The error message is:

|Error|CS1503|Argument 6: cannot convert from 'Microsoft.AspNetCore.Components.EventCallback' to 'Microsoft.AspNetCore.Components.EventCallback<HighTide_Blazor.Data.HighTide.ApplyInvestors>

<RadzenTemplateForm Data="@objApplyInvestors" Submit="@OnSubmit">
(...)

@code
{
    (...)
    ApplyInvestors objApplyInvestors = new ApplyInvestors();

async Task OnSubmit()
{
...
}
}

Hi @svrebelo,

The method should have data item type as argument in my opinion.

1 Like

@enchev I tried adding this: TItem="ApplyInvestors"

and the error dissapeared.

Is this the best solution?

Thanks in advance!

Yep, this is the best solution.

1 Like

Thank you very much!

I'm loving working with Radzen so far!

Cheers!