zfdatagrid / grid

A DataGrid library for Zend Framework
BSD 3-Clause "New" or "Revised" License
10 stars 16 forks source link

Save search criteria #871

Closed imonteiro closed 11 years ago

imonteiro commented 11 years ago

Original author: emo.anto...@gmail.com (October 28, 2010 10:25:13)

What steps will reproduce the problem?

  1. OK we have some Bvb_Grid_Deploy_JqGrid with different filter options
  2. We use one filter to see results only for today
  3. We have a view of this result (additional page) and go to view
  4. Now I want to move back and see same grid with saved search criteria only for today, not to make search again

What is the expected output? What do you see instead?

Please insert the appropriate values; Zend Framework version: 1.10 ZFDatgrid Version (Bvb_Grid::getVersion()): 0.6.5 Operating system: Windows 7 PHP Version: 5.3.1 Database Server and version: mysql Source Adatapter: Bvb_Grid_Source_Zend_Select

I think that could be possible if we use mtype = GET to save search prams in browser history with '#', but for this moment grid support only mtype=POST example: url?#_search=true&nd=123&rows=10&page=1&sidx=&sord=asc&status=1

What do you think, is this possible?

Original issue: http://code.google.com/p/zfdatagrid/issues/detail?id=485

imonteiro commented 11 years ago

From martin.m...@gmail.com on January 07, 2011 14:35:56 I think this is more related to the core class and generaly to filters, not only to Bvb_Grid_Deploy_JqGrid. So I assigned this to Bento who is the main designer of Bvb.

Bvb_Grid_Deploy_JqGrid generates jqGrid and that has great API. If you need this functionality you may code own handler which will for example show combobox of pre-filled filters and calling jqGrid methods to change the filters. Maybe this could help http://stackoverflow.com/questions/2603869/how-do-i-manipulate-a-jqgrids-search-filters.