0

I have created a grid extending Mage_Adminhtml_Block_Widget_Grid. Within _prepareCollection I'm doing this:

$collection->getSelect()->limit(10);

But as soon the reset filter button is clicked all rows are returned. I couldn't find a way to set a permanent limit. What should I do to retain the limit number?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.