remove

Removes a command from the ToolBar widget. The command is removed 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 removed. 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.remove($("#btn2"));
</script>
In this article