[Solved] Validator

0 Answers 5 Views
TabStrip
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Cynthia asked on 08 Apr 2026, 07:55 PM

I am trying to stop the user from switching to another tab if there are fields on the current tab that are not valid.  Here is the scenario.  I have a grid with a custom button that opens a partial view in a modal window.  This partial view has tabs on it which calls other partial views.  Before someone leaves a tab I would like to see if there are any fields that need addressing.  I'm doing this because I can't figure out how to return to the correct tab after I return from the controller when the model state is false.  (hint If this is an easier thing then please let me know)

The Application Number is required.  When I click on the other tabs it shows you in the console the previous tab, the length of the object and the fact that KendoValidator.Validate returns true.  Even though the application number is obviously blank.

Other Information Tab:

"Main" Partial View with the Tabs:

What am I doing wrong here?  Or is there an example that shows me how to take the user back to the tab with the fields that cause the model state to be invalid.

Here's the controller just in case:

 

 

 

 

 

 

No answers yet. Maybe you can help?

Tags
TabStrip
Asked by
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or