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

Override tabstrip select

1 Answer 93 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Katarzyna Lucka
Top achievements
Rank 1
Katarzyna Lucka asked on 07 Jun 2013, 09:10 AM
Hi,
How can I override select event for tabstrip? I need to block possibility of select tabs by clicking on it. Only way to move between strips is to click "next" or "back" button.

1 Answer, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 10 Jun 2013, 08:09 AM
Hello Katarzyna,

TabStrip widget has a select event that fires before a tab gets selected. You can hook up to that event and call e.preventDefault(); to cancel the tab switching.
var tabStrip = $("#tabStrip").kendoTabStrip({
    select: function(e) {
        e.preventDefault(); //cancel the action
    }
});


Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TabStrip
Asked by
Katarzyna Lucka
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or