RadzenButton with ButtonType.Submit

Maybe I'm blind - but what method/function is called by this? or do I need to specify the function with Click-attribute?

My template contains a RadzenButton with ButtonType=ButtonType.Submit but the void Submit() is apparently not called - at least the breakpoint is not reached.

<RadzenTemplateForm TItem="modelClass" Data=@model Submit=@OnSubmit>
...
<RadzenButton ButtonType="ButtonType.Submit" Icon="save" Text="Speichern" Style="font-size: x-large" />
....

void OnSubmit(modelClass value)
{
    // save Model-changes -

in the above shown code-section the form is correctly filled from the model data but then the OnSubmit Method is apparently not called. I put a breakpoint at the first instruction inside void OnSubmit (the comment is infact a method call to store the data in the local datastore, but the breakpoint is not reached., so I need some help understanding the problem and possible solutions

Hi @eagle275,

There is probably a validation error. This is one of the reasons the Submit event won't fire. You can try subscribing to the InvalidSubmit event to see if this is the case.

Happy New Year,

@korchev there was indeed a validation error ^^ works now

New to .Net 8.0

I've just spent the best part of an hour wondering why my Submit event didn't fire. Followed this thread and nothing. Changed it to a basic Click event and still no joy.

After changing to Click event and not firing, it hit me that I'd not set the @rendermode for the page.