\Kendo\UI\GridReorderable

A PHP class representing the reorderable setting of Grid.

Methods

columns

If set to true the user could reorder the columns by dragging their header cells. By default reordering is disabled. Multi-level headers allow reordering only in same level.

Returns

\Kendo\UI\GridReorderable

Parameters

$value boolean

Example

<?php
$reorderable = new \Kendo\UI\GridReorderable();
$reorderable->columns(true);
?>

rows

If set to true the user could reorder the rows by dragging them. By default reordering for rows is disabled. If the selectable option is enabled for rows only selected rows will can be dragged and reordered.More about the Grid Row Drag and Drop functionality you can read in this article.

Returns

\Kendo\UI\GridReorderable

Parameters

$value boolean|\Kendo\UI\GridReorderableRows|array

Example - using boolean

<?php
$reorderable = new \Kendo\UI\GridReorderable();
$reorderable->rows(true);
?>

Example - using \Kendo\UI\GridReorderableRows

<?php
$reorderable = new \Kendo\UI\GridReorderable();
$rows = new \Kendo\UI\GridReorderableRows();
$clickMoveClick = true;
$rows->clickMoveClick($clickMoveClick);
$reorderable->rows($rows);
?>

Example - using array

<?php
$reorderable = new \Kendo\UI\GridReorderable();
$clickMoveClick = true;
$reorderable->rows(array('clickMoveClick' => $clickMoveClick));
?>
In this article
Not finding the help you need?