This question is locked. New answers and comments are not allowed.
Hi, the documentation of the lack of information addSortItem the value that we want to filter. The following example generates an error in the documentation table.
My suggestion to the look an example:
<?php
$dataSource
=
new
\Kendo\Data\DataSource(
'DataSource'
);
$sortItem
=
new
\Kendo\Data\DataSourceSortItem();
$dir
=
'value'
;
$sortItem
->dir(
$dir
);
$dataSource
->addSortItem(
$sortItem
);
?>
My suggestion to the look an example:
<?php
$dataSource
=
new
\Kendo\Data\DataSource(
'DataSource'
);
$sortItem
=
new
\Kendo\Data\DataSourceSortItem();
$sortItem
->field(
'value'
)->dir(
'dir'
);
$dataSource
->addSortItem(
$sortItem
);
?>