What is the proper way of setting a filter on a datagrid from a variable?
I can manually set a filter in the parse function of the datasource but I assume there is a better way.
I've seen a post about setting the grid.datasource.filter such as
grid.dataSource.filter({field: "someValue", operator: "eq", value: someValue });
but when I put this in the databound event it does work but I'm getting some stack overflow errors so I assume this is wrong.
I've created a dojo showing what I have sofar.