zfdatagrid / grid

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

JqGrid Export Buttons #410

Open imonteiro opened 11 years ago

imonteiro commented 11 years ago

Original author: martin.k...@gmail.com (November 12, 2010 08:30:09)

What steps will reproduce the problem?

  1. Running an application in a popup Window
  2. Using the export buttons fomr JqGrid

What is the expected output? What do you see instead? There are two possibilitys to display the exported data:

When running an application in a popup window, you should also have the abbility to open the export also in a new popup window.

Please insert the appropriate values; Zend Framework version: 1.11 ZFDatgrid Version (Bvb_Grid::getVersion()): 0.6.5 Operating system: PHP Version: 5.3.2 Database Server and version: Source Adatapter:

Please provide any additional information below.

Possible solution: Changing the parameter "newWindow" to f.x. "exportDestination"

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

imonteiro commented 11 years ago

From martin.m...@gmail.com on January 07, 2011 14:06:01 If you have ready code to be added into Bvb_Grid_Deploy_JqGrid::addExportButtons() to support opening in popup I will be happy to add it there.

I agree that the parameter "newWindow" is not best name, but it can't be removed because of compatibility. I could add "exportDestination" parameter with following accepted values: "_blank" = same as newWindow "_self" = redirect of current page "popup" = your function array(callback) = if array will be passed I will call that PHP function/method to obtain javascipt for onClickButton event