Thank you for your response.

But grid.getDataSource() returns null. I guess it's because I'm in a event
handler method (grid.getDataSource() is not null in the AfterRenderTemplate
method).



2015-05-15 10:49 GMT+02:00 Lance Java <lance.j...@googlemail.com>:

> I'm not entirely sure the problem but it's likely caused by @BindParameter
> which is likely invoking the binding each access.
>
> Try
>
> @InjectContainer Grid grid;
>
> And grid.getDataSource().
>
> This will give you an instance of CachingDataSource which should have the
> lazy behaviour you want.
>

Reply via email to