This is a migrated thread and some comments may be shown as answers.

Tabstrip validation

1 Answer 57 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Bindu
Top achievements
Rank 1
Bindu asked on 29 Jul 2010, 03:48 PM
I have a tabstrip control with three tabs and a validation summary control .
Second tab in the tabstrip has a user control with required field validators.
When I load the page it loads with the first tab . if the user make changes and if they save changes without even going to the second tab, the page blows up with the error message "Can't move focus to the control because it is invisble,not enables, or of a type that doesn't accept focus"
If I click okay the page reloads with the validation summary.

I want the page to show the validation when I hit the save and open the tab which has error .

I tried turning off the causesvalidation in the tabstrip, didn't work.

thanks

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 05 Aug 2010, 11:25 AM
Hi Bindu,

The error you see is caused by the ASP.NET validators that try to focus elements in a hidden PageView. This error only occurs in IE.

The problem here is that RadTabStrip has no way to know when the validation occurred and exactly which validator failed (and in which PageView). Even if it did it can't cover the scenario when you have validators in more than one PageView.

The best that we can do is to prevent the JavaScript error, so the user can at least see the validation summary. Please set SetFocusOnError to "false" on the affected validators.

I hope this helps.

Best wishes,
Tsvetomir Tsonev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TabStrip
Asked by
Bindu
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or