\Kendo\UI\SpreadsheetSheetSort

A PHP class representing the sort setting of SpreadsheetSheet.

Methods

addColumn

Adds one or more SpreadsheetSheetSortColumn to the SpreadsheetSheetSort.

Returns

\Kendo\UI\SpreadsheetSheetSort

Parameters

$value[, $value2, ...] \Kendo\UI\SpreadsheetSheetSortColumn |array

Example - using \Kendo\UI\SpreadsheetSheetSortColumn

<?php
$sort = new \Kendo\UI\SpreadsheetSheetSort();
$column = new \Kendo\UI\SpreadsheetSheetSortColumn();
$ascending = true;
$column->ascending($ascending);
$sort->addColumn($column);
?>

Example - using array

<?php
$sort = new \Kendo\UI\SpreadsheetSheetSort();
$ascending = true;
$sort->addColumn(array('ascending' => $ascending));
?>

Example - adding more than one SpreadsheetSheetSortColumn

<?php
$sort = new \Kendo\UI\SpreadsheetSheetSort();
$first  = new \Kendo\UI\SpreadsheetSheetSortColumn();
$second = new \Kendo\UI\SpreadsheetSheetSortColumn();
$sort->addColumn($first, $second);
?>

ref

The sorted range, e.g. "A1:D5".

Returns

\Kendo\UI\SpreadsheetSheetSort

Parameters

$value string

Example

<?php
$sort = new \Kendo\UI\SpreadsheetSheetSort();
$sort->ref('value');
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve the information

close
Dummy