PHP Wrappers: DataSource->addSortItem || documentation

1 posts, 0 answers
  1. Paweł Kasztelan
    Paweł Kasztelan avatar
    17 posts
    Member since:
    Aug 2012

    Posted 25 Mar 2013 Link to this post

    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);
    ?>
Back to Top