<kendo:treeList-toolbarItem>

If a String value is assigned to the toolbar configuration option, it will be treated as a single string template for the whole treelist Toolbar, and the string value will be passed as an argument to a kendo.template() function.If a Function value is assigned (it may be a kendo.template() function call or a generic function reference), then the return value of the function will be used to render the treelist Toolbar contents.If an Array value is assigned, it will be treated as the list of commands displayed in the treelist Toolbar. Commands can be custom or built-in ("create", "excel", "pdf"). The "create" command adds an empty data item to the treelist.; The "excel" command exports the treelist data in MS Excel format. or The "pdf" command exports the treelist data in PDF format..

Example

<kendo:treeList-toolbar>
    <kendo:treeList-toolbarItem></kendo:treeList-toolbarItem>
</kendo:treeList-toolbar>

Configuration Attributes

click java.lang.String

The click handler of the toolbar command. Used for custom toolbar commands.

Example

<kendo:treeList-toolbarItem click="click">
</kendo:treeList-toolbarItem>

imageClass java.lang.String

A class name to render inside the toolbar button. When you set this option, the TreeList renders an additional span element inside the toolbar button, with a class name set to the option value. This allows you to display an icon inside your custom toolbar commands.

Example

<kendo:treeList-toolbarItem imageClass="imageClass">
</kendo:treeList-toolbarItem>

name java.lang.String

The name of the toolbar command. Either a built-in ("create", "excel", "pdf") or a custom string. The name is output in the HTML as a value of the data-command attribute of the button.

Example

<kendo:treeList-toolbarItem name="name">
</kendo:treeList-toolbarItem>

text java.lang.String

The text displayed by the command button. If not set the name` option would be used as the button text instead.

Example

<kendo:treeList-toolbarItem text="text">
</kendo:treeList-toolbarItem>

Event Attributes

click String

The click handler of the toolbar command. Used for custom toolbar commands.

Example

<kendo:treeList-toolbarItem click="handle_click">
</kendo:treeList-toolbarItem>
<script>
    function handle_click(e) {
        // Code to handle the click event.
    }
</script>

Event Tags

kendo:treeList-toolbarItem-click

The click handler of the toolbar command. Used for custom toolbar commands.

Example

<kendo:treeList-toolbarItem>
    <kendo:treeList-toolbarItem-click>
        <script>
            function(e) {
                // Code to handle the click event.
            }
        </script>
    </kendo:treeList-toolbarItem-click>
</kendo:treeList-toolbarItem>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy