$ 0 0 This example does not work when the grid is defined in a template (in a view). Is there an example where it is used in a view or template?