madcorp / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Label ALL in filters does not clear filters #868

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Deploy a grid
2. Add filter drop down for values
3. Select a value
4. Select the ALL options in the field back

What is the expected output? What do you see instead?
Selecting ALL should clear the filtered selection to normal drop down without 
selection

Please insert the appropriate values;
                    Zend Framework version:1.12
ZFDatgrid Version (Bvb_Grid::getVersion()):0.8
                          Operating system:Ubuntu
                               PHP Version:5
               Database Server and version:Mysql 5.1.62-0ubuntu0.10.04.1 
                          Source Adatapter: Table

Please provide any additional information below.
I need to know how to clear filter using the ALL option selection for all drop 
down filters instead of clicking "Clear Filter" button always 
Thanks 

Original issue reported on code.google.com by indira.b...@gmail.com on 26 Jun 2012 at 4:34

GoogleCodeExporter commented 9 years ago
Hi,

Selecting "ALL" should it's not the same as "Clear Filters". If you have more 
than one filter it's not supposed clear other selections/filters.

If you only have the select filter and show all records when selecting "ALL" 
you can set:
$grid->setUseKeyEventsOnFilters(true);

IM

Original comment by ivomonte...@gmail.com on 27 Jun 2012 at 2:21

GoogleCodeExporter commented 9 years ago

Original comment by ivomonte...@gmail.com on 27 Jun 2012 at 3:26

GoogleCodeExporter commented 9 years ago
Thanks for the quick reply,
I have set the feature $grid->setUseKeyEventsOnFilters(true); on and have only 
select filters, but ALL is option is not clearing the filters if I have one 
selection too. Yes the Clear filter button works perfect but if ALL option is 
used that would reduce a click on the page.

Original comment by indira.b...@gmail.com on 28 Jun 2012 at 1:49

GoogleCodeExporter commented 9 years ago
I found the problem when I used $grid->saveParamsInSession(true);  line the 
'ALL' label does not clear filter, if I remove it then it works perfect. Can 
you please let me know what is the use of this option.
Thanks
Indira

Original comment by indira.b...@gmail.com on 5 Jul 2012 at 5:36