<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>

name java.lang.String

The name of the toolbar command. Either a built-in ("create", "excel", "pdf") or custom. The name is reflected in one of the CSS classes, which is applied to the button - k-grid-name. This class can be used to get a reference to the button (after TreeList initialization) and attach click handlers.

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