Override tabstrip select

2 posts, 1 answers
  1. Katarzyna Lucka
    Katarzyna Lucka avatar
    3 posts
    Member since:
    Aug 2009

    Posted 07 Jun 2013 Link to this post

    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.
  2. Answer
    Katarzyna Lucka
    Katarzyna Lucka avatar
    3 posts
    Member since:
    Aug 2009

    Posted 10 Jun 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
Back to Top