I have a listgrid with a couple of fields. One field in the datasource is a foreign key field to another datasource, like this:
I have a dropdown above the grid, with name as title and "locationId" as value. When i select from the list i have a handler that sets a criteria on the grid like this:
The "filterVal" is an int, i have done GWT.log and it has the correct value and matches a couple of rows in the listgrid. What happens however, is that the grid becomes totally empty. Haven't looked at this in a long time, so pointers to what i'm doing wrong are appreciated.
Code:
<field name="locationId" type="integer" foreignKey="location.id" required="true" combo="false" hidden="true"/>
Code:
Criteria filter = new Criteria(); filter.addCriteria("locationId", filterVal); filterGrid.filterData(filter);
Comment