\Kendo\UI\GridSelectable
A PHP class representing the selectable setting of Grid.
Methods
cellAggregates
If set to true all aggregates will be calculated and made available to the Status Bar. The cellAggregates property also accepts an array in case only some of the aggregates should be calculated.The available aggregates are: count - the count of all selected cells(excluding command/selectable/draggable column) but including template columns without fields.; max - for numeric cells - the biggest numeric value across all of the selected cells/rows.; min - for numeric cells - the smallest numeric value across all of the selected cells/rows.; sum - for numeric cells - the sum of all numeric values from the selected cells/rows.; average - for numeric cells - the average of all numeric values from the selected cells/rows.; earliest - for date cells.; latest - for date cells.; isTrue - for boolean cells - the count of all selected cells with value true. or isFalse - for boolean cells - the count of all selected cells with value false..
Returns
\Kendo\UI\GridSelectable
Parameters
$value boolean|array
Example - using boolean
<?php
$selectable = new \Kendo\UI\GridSelectable();
$selectable->cellAggregates(true);
?>
Example - using array
<?php
$selectable = new \Kendo\UI\GridSelectable();
$selectable->cellAggregates(array());
?>
checkboxSelection
When set to true, the grid.selectable will not be initialized. Should be enabled when both checkbox selection for the Grid and cell aggregates are required.
Returns
\Kendo\UI\GridSelectable
Parameters
$value boolean
Example
<?php
$selectable = new \Kendo\UI\GridSelectable();
$selectable->checkboxSelection(true);
?>
dragToSelect
When set to true, the user can drag to select multiple Grid rows or cells.
Returns
\Kendo\UI\GridSelectable
Parameters
$value boolean
Example
<?php
$selectable = new \Kendo\UI\GridSelectable();
$selectable->dragToSelect(true);
?>
ignoreOverlapped
When set to true, visually hidden elements that match by the filter option criteria but are overlapped by other elements that also can be selected, are ignored.
Returns
\Kendo\UI\GridSelectable
Parameters
$value boolean
Example
<?php
$selectable = new \Kendo\UI\GridSelectable();
$selectable->ignoreOverlapped(true);
?>
mode
Can be set to the following string values: "row" - the user can select a single row.; "cell" - the user can select a single cell.; "multiple, row" - the user can select multiple rows. or "multiple, cell" - the user can select multiple cells..
Returns
\Kendo\UI\GridSelectable
Parameters
$value string
Example
<?php
$selectable = new \Kendo\UI\GridSelectable();
$selectable->mode('value');
?>