\Kendo\UI\DropDownTreeCheckboxes

A PHP class representing the checkboxes setting of DropDownTree.

Methods

checkChildren

Indicates whether checkboxes of child items should get checked when the checkbox of a parent item is checked. This also enables tri-state checkboxes with an indeterminate state.

Returns

\Kendo\UI\DropDownTreeCheckboxes

Parameters

$value boolean

Example

<?php
$checkboxes = new \Kendo\UI\DropDownTreeCheckboxes();
$checkboxes->checkChildren(true);
?>

name

Sets the name attribute of the checkbox inputs. That name will be posted to the server.

Returns

\Kendo\UI\DropDownTreeCheckboxes

Parameters

$value string

Example

<?php
$checkboxes = new \Kendo\UI\DropDownTreeCheckboxes();
$checkboxes->name('value');
?>

template

The template which renders the checkboxes. Can be used to allow posting of additional information along the TreeView checkboxes.The fields which can be used in the template are: item - the data item of the given node or treeview - the TreeView options.

Returns

\Kendo\UI\DropDownTreeCheckboxes

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$checkboxes = new \Kendo\UI\DropDownTreeCheckboxes();
$checkboxes->template('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$checkboxes = new \Kendo\UI\DropDownTreeCheckboxes();
$checkboxes->template(new \Kendo\JavaScriptFunction('function() { }'));
?>
In this article
Not finding the help you need?