madcorp / zfdatagrid

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

problem if you want to display the grid in an ajax application #810

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you have for instance a view where you have 

<div><?php echo $this->grid; ?></div>

and you want to display that using ajax , you will see only the $this->grid 
value, without what you have in view.

This is because in Grid/Deploy/Table.php, line 1951 you have this:
if (($this->getParam('gridmod') == 'ajax' && $this->getInfo("ajax") !== false )
            || $this->getRequest()->isXmlHttpRequest()) {
I think we should remove "|| $this->getRequest()->isXmlHttpRequest() ", so it 
will work correctly when you want to display the grid in an ajax application.

Original issue reported on code.google.com by re...@bejenaru.com on 9 Jan 2012 at 12:45

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1925.

Original comment by licentia...@gmail.com on 6 May 2012 at 6:10

GoogleCodeExporter commented 9 years ago
Issue 811 has been merged into this issue.

Original comment by licentia...@gmail.com on 6 May 2012 at 6:10