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

[Solved] How Do I Cancel the Tab OnSelect Event

2 Answers 41 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chad
Top achievements
Rank 1
Chad asked on 14 Jun 2012, 11:04 PM
I have 3 tabs the first of which has to be valid before the use can load the other two tabs (ajax loaded).  If the user select tab 2 or 3 I want validate tab1 and if it fails cancel the tab 2 or 3 selection.  I looked through many posts on here but cant seem to find an answer.

Thanks!,
Chad

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 19 Jun 2012, 02:57 PM
Hello Chad,

You can cancel the selection by using the event argument preventDefault method in the OnSelect event e.g.

function onSelect(e) {
    if (PreventSelection) {
        e.preventDefault();
    }       
}

 
Greetings,
Daniel
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
0
Chad
Top achievements
Rank 1
answered on 20 Jun 2012, 05:09 PM
Perfect thank you.  I actually figured this out based on other telerik control events that have this documented.  

Chad
Tags
TabStrip
Asked by
Chad
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Chad
Top achievements
Rank 1
Share this question
or