0

If I am creating a block which is type 'Mage_Adminhtml_Block_Widget_Grid' in my controller like so...

$block = $this->getLayout()->createBlock('mymod/adminhtml_mymod_my_grid');

I can get the html like so...

$block->getHtml();

Is there any way I can get the number of rows the grid returns? Something like...

$block->getRowTotal();

1 Answer 1

0

$block->getCollection()->getSize(); retrieves the count of all items.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.