New to Kendo UI for jQueryStart a free 30-day trial

Overflow

configuration

Configures the overflow behavior of the ToolBar.

overflow

Object
<div id="toolbar"></div>

<script>
    $("#toolbar").kendoToolBar({
        overflow: {
            mode: "scroll",
            scrollButtons: "auto",
            scrollButtonsPosition: "split",
            scrollDistance: 50
        },
        items: [
            { type: "button", text: "Button 1" },
            { type: "button", text: "Button 2" }
        ]
    });
</script>

Defines the overflow mode. The available options are:

  • "menu" — Moves overflowing items into a dropdown menu.
  • "scroll" — Keeps items visible and enables horizontal scrolling.
  • "section" — Groups items into collapsible sections.
  • "none" — Disables overflow handling; items may be cut off.

Default: "menu"

<script>
    $("#toolbar").kendoToolBar({
        overflow: {
            mode: "scroll"
        }
    });
</script>

Defines the visibility of scroll buttons when mode is "scroll". The available options are:

  • "auto" — Displays scroll buttons only when needed.
  • "hidden" — Hides the scroll buttons at all times.
  • "visible" — Always shows the scroll buttons.

Default: "auto"

<script>
    $("#toolbar").kendoToolBar({
        overflow: {
            mode: "scroll",
            scrollButtons: "hidden"
        }
    });
</script>

Defines the placement of scroll buttons. The available options are:

  • "split" — Scroll buttons appear at both ends of the toolbar.
  • "start" — Scroll buttons appear only at the start of the toolbar.
  • "end" — Scroll buttons appear only at the end of the toolbar.

Default: "split"

<script>
    $("#toolbar").kendoToolBar({
        overflow: {
            mode: "scroll",
            scrollButtonsPosition: "end"
        }
    });
</script>

Specifies the distance (in pixels) the toolbar scrolls when a scroll button is clicked.

Default: 50

<script>
    $("#toolbar").kendoToolBar({
        overflow: {
            mode: "scroll",
            scrollDistance: 100
        }
    });
</script>