\Kendo\Data\DataSourceSortItem

A PHP class representing the sortItem setting of DataSourceSort.

Methods

compare

Function which can be used for custom comparing of the DataSource items.

Returns

\Kendo\Data\DataSourceSortItem

Parameters

$value \Kendo\JavaScriptFunction

Example

<?php
$sortItem = new \Kendo\Data\DataSourceSortItem();
$sortItem->compare(new \Kendo\JavaScriptFunction('function() { }'));
?>

dir

The sort order (direction).The supported values are: "asc" (ascending order) or "desc" (descending order).

Returns

\Kendo\Data\DataSourceSortItem

Parameters

$value string

Example

<?php
$sortItem = new \Kendo\Data\DataSourceSortItem();
$sortItem->dir('value');
?>

field

The field by which the data items are sorted.

Returns

\Kendo\Data\DataSourceSortItem

Parameters

$value string

Example

<?php
$sortItem = new \Kendo\Data\DataSourceSortItem();
$sortItem->field('value');
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy