switchTo

Set the mobile TabStrip active tab to the tab with the specified URL. This method doesn't change the current View. To change the View, use Application's navigate method instead.

Parameters

url String|Number

The URL or zero based index of the tab.

    <div id="foo" data-role="view">
      Button
      <div data-role="footer">
        <div data-role="tabstrip">
          foo
          bar
        </div>
      </div>
    </div>


    <script>
    var app = new kendo.mobile.Application();
    function onClick() {
      var tabstrip = app.view().footer.find(".km-tabstrip").data("kendoMobileTabStrip");
      tabstrip.switchTo("#bar"); //activate "bar" tab
    }
    </script>
In this article