RadzenTemplateForm set Validation state in code

I'm using RadzenTemplateForm, and inside I have a component, in which I do some validations.
If some validation is missing I'll show an error (mix of label and a hipper link)
I want to set RadzenTemplateForm validation state to false when applies, from within the component so that the submit button is disabled

Hi @foluis,

I don't understand that. RadzenTemplateForm doesn't have a validation state so you can't set it to false. It relies on the built-in Blazor validation which uses EditContext. You can get the EditContext which is in use by getting a ref to the form.

<RadzenTemplateForm @ref="myForm" TItem="MyModel">

@code {
    RadzenTemplateForm<MyModel> myForm;


    void SomeMethod()
    {
       // use edit context
      var editContext = myForm.EditContext
    }
}