\Kendo\UI\GridSortable
A PHP class representing the sortable setting of Grid.
Methods
allowUnsort
If set to true the user can get the grid in unsorted state by clicking the sorted column header.
Returns
\Kendo\UI\GridSortable
Parameters
$value boolean
Example
<?php
$sortable = new \Kendo\UI\GridSortable();
$sortable->allowUnsort(true);
?>
initialDirection
Determines the inital (from un-sorted to sorted state) sort direction. The supported values are asc and desc.
Returns
\Kendo\UI\GridSortable
Parameters
$value string
Example
<?php
$sortable = new \Kendo\UI\GridSortable();
$sortable->initialDirection('value');
?>
mode
The sorting mode. If set to "single" the user can sort by one column. If set to "multiple" the user can sort by multiple columns. And the "mixed" mode enables you to sort in single mode when clicking and switch to multiple when holding ctrl key.
Returns
\Kendo\UI\GridSortable
Parameters
$value string
Example
<?php
$sortable = new \Kendo\UI\GridSortable();
$sortable->mode('value');
?>
showIndexes
If set to true the user will see sort sequence indicators for sorted columns.
Returns
\Kendo\UI\GridSortable
Parameters
$value boolean
Example
<?php
$sortable = new \Kendo\UI\GridSortable();
$sortable->showIndexes(true);
?>