o5 / grido

Grido - DataGrid for Nette Framework
http://o5.github.io/grido-examples/
MIT License
90 stars 88 forks source link

Wrong initializing of the paginator #275

Closed brosland closed 8 years ago

brosland commented 8 years ago

Hello,

I want to get data from a grid into a presenter. So I used method $grid->getData(FALSE) for that and it works fine. But if I want to render grid an error "Trying to get property of non-object" is thrown from grid's template. It is because you don't have initialized paginator correctly. The paginator should be set to template via getter $this->template->paginator = $this->getPaginator().

o5 commented 8 years ago

Could you upload tracy error? The paginator should be initialised properly.

brosland commented 8 years ago

I'm sorry, I have old version #908acc8. Someone set to composer "o5/grido": "dev-master#908acc8" in our project :-/.