Alireza Amiri
Alireza Amiri

Reputation: 511

magento - hide grid filter , but not disable it

I want to use a form for filtering a grid in magento! also I want to hide the column filters in this grid, so I used :

'filter'=>false,

Now the form does not work neither, What should I do to just hide the column filters, not disable them?

Upvotes: 3

Views: 2039

Answers (1)

Alireza Amiri
Alireza Amiri

Reputation: 511

Found the answer :), In the __construct method of your grid, you should add this code :

    $this->setFilterVisibility(false);

This will hide the whole filter row. Just what I want!

Upvotes: 5

Related Questions