This is a migrated thread and some comments may be shown as answers.

PHP Wrappers: DataSource->addSortItem || documentation

0 Answers 35 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paweł Kasztelan
Top achievements
Rank 2
Paweł Kasztelan asked on 25 Mar 2013, 07:31 AM
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.

<?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);
?>

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Paweł Kasztelan
Top achievements
Rank 2
Share this question
or