Skip to content

setDefaultOrder isn't working #951

Open
@Fidesio-Thomas

Description

@Fidesio-Thomas

Hi,

I'm currently following the README to order my rows according to a specific field, so i chose "setDefaultOrder" method, but it doesn't seem to work.

Here is the code :
`
$source = new Entity('CoreBundle:DecisionStatement', 'project');

    // Get a Grid instance
    $grid = $this->get('grid');
    $grid->setSource($source);
    $grid->setDefaultOrder('rdNumber', 'desc');

`
Rows are still displayed by default ASC order.
Am i doing something wrong ?

Thomas

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions