Using a the Window component to submit the parent form including validation.

1 Answer 257 Views
Window
Jstemper
Top achievements
Rank 2
Bronze
Iron
Jstemper asked on 24 Jun 2021, 04:25 PM

I have a form that I would like to use the Window component on to gather additional information before submitting the parent form. 

Is there a way to trigger submit of the parent form and the associated Validations from the Window component? Or is there a different component that should be used?

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 26 Jun 2021, 03:42 PM

Hi,

If you have an EditContext object for the form and you pass it to the window cotnents, you will be able to use its .Validate() method as required by your logic.

That said, I recommend you take a look at the following three articles that explain similar situations and common issues with similar setups that you may want to keep in mind:

 

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Window
Asked by
Jstemper
Top achievements
Rank 2
Bronze
Iron
Answers by
Marin Bratanov
Telerik team
Share this question
or