S0RIEN/DataGridBundle — Issue #85: Sort and filter on a "relation column"
Author: sterrien
Created: 2012-02-27 14:02:51+00:00
State: open

I am trying to use "filter" and "sort" functionalities on a TextColumn.
My TextColumn contains data from a ManyToOne relation :

$familyColumn = new TextColumn(array('id' => 'family', 'title' => 'family', 'filterable' => true, 'field' => 'family.label', 'source' => true));

Things I have observed:

* if I set 'source' to false, my column contains no data
* if I try to sort my column, I have an error in the fetchAndSaveGridData function : **Column with id "family" doesn't exists**. It seems to be like that because fetchAndSaveGridData is called before I add my TextColumn.
* if I try to filter my column, the entered value is lost and my grid is not filtered. It seems to be like that because the fetchAndSaveColumnData function is called before I add my TextColumn to the grid.

Both two last point can be fixed by adding my TextColumn and then set the source. But in that case I can't place my column at the position I want.

Have you allready seen that problem ?