hide

Hides a command from the ToolBar widget. The command is hidden from the ToolBar container and overflow popup (if resizable is enabled).

Parameters

command String|Element|jQuery

A string, DOM element or jQuery object which represents the command to be hidden. A string is treated as jQuery selector.

Example - removed button from the ToolBar

<div id="toolbar"></div>
<script>
    $("#toolbar").kendoToolBar({
        items: [
            { type: "button", id: "btn1", text: "Button 1" },
            { type: "button", id: "btn2", text: "Button 2" }
        ]
    });

    var toolbar = $("#toolbar").data("kendoToolBar");
    toolbar.hide($("#btn2"));
</script>
In this article