Forum


15:59

16/06/2010

Hi guys. I am asking you for your support. I have trouble with integrating the jqGrid (this awesome plugin). I just downloaded archive, include everything and start integrating. Here i should say i am using Zend Framework. And the problems i have are (version jquery.jqGrid-3.7.1):
- first problem was: uncaught exception: jqGrid - No such method: navGrid - OK here i think i have solution, and it is to replace jquery.jqGrid.min.js (66KB) with same file from ZFDatagrid-0.6.5 - Sample project - jquery.jqGrid.min.js(204KB)
- Now grid is shown, but here is starting my second problem. Column sorting and paging not working. I've tried to catch what happens in FF console - and there everything looks fine - request are send, parameters are ok, but responce is aways same
here is my code:
abusesController.php
$abuses_model = new Model_Abuses();
$abuses = $abuses_model->getAbuses();
$config = new Zend_Config_Ini('../application/configs/grid.ini', 'production');
$grid = Bvb_Grid::factory('Bvb_Grid_Deploy_JqGrid', $this->_config, 'abuses');
$grid->setSource(new Bvb_Grid_Source_Array($abuses));
$grid->ajax(get_class($grid));
$this->view->grid = $grid->deploy();
abuses.phtml
<?php echo $this->jQuery();?>
<?php echo $this->grid; ?>
Thanks in advance.
18:07

16/06/2010

OK, if someone else have this problem too, here is the solution. As you see above in my previous post i was using this style to make instance:
$grid = Bvb_Grid::factory('Bvb_Grid_Deploy_JqGrid', $this->_config, 'abuses');
and here is the right way, and it works now:
$grid = new Bvb_Grid_Deploy_JqGrid($this->_config);
Most Users Ever Online: 715
Currently Online:
51 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66