New to Kendo UI for jQuery? Download free 30-day trial

Initialize Grids in TabStrips

The example below demonstrates how to use the activate event when initializing the Grid within the TabStrip so as it is resized according to the dimensions of its container.


In addition to the Kendo UI TabStrip, this example can be applied to the PanelBar and Window widgets, which, too, act as hidden containers for the Grid.

      <button id="openBtn">Open</button>

      <div id="tabstrip">
          <li id="tab1">Tab 1</li>
          <li id="tab2">Tab 2</li>
        <div><div id="grid"></div></div>
        <div>Content 2</div>

      <script src=""></script>
        var tabstrip = $("#tabstrip").kendoTabStrip().data("kendoTabStrip");

        var grid = $("#grid").kendoGrid({
            dataSource: {
              data: products,
              pageSize: 5
          height: 200,
          scrollable: true,
          columns: [
              { field: "UnitPrice", title: "Unit Price", format: "{0:c}", width: "130px" },
              { field: "UnitsInStock", title: "Units In Stock", width: "130px" },
              { field: "Discontinued", width: "130px" }

          //apply the activate event, which is thrown only after the animation is played out
"activate", function() {

          $("#openBtn").click(function(e) {

See Also

For more runnable examples on the Kendo UI TabStrip widget, browse its How To documentation folder.

In this article
Not finding the help you need? Improve this article