APY / APYDataGridBundle

Symfony Datagrid Bundle
MIT License
494 stars 343 forks source link

fill select values in controller #933

Open grekpg opened 7 years ago

grekpg commented 7 years ago

Is possible to fill data to select filter in controller not in annotation ? i have dynamic fields and only in conroller i can push data

artscorestudio commented 7 years ago

Yes. You can set column in your controller : https://github.com/artscorestudio/APYDataGridBundle/blob/symfony3/Resources/doc/grid_configuration/add_column.md.

$myColumn = new BlankColumn(array(
    "selectFrom" => "values",
    "values" => array(
        "dynValue1" => "My dyn value 1",
        "dynValue2" => "My dyn value 2"
    )
))
DonCallisto commented 7 years ago

@grekpg can we close this?