Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Integrating problem
16/06/2010
15:59
Avatar
emo.antonov
Sofia, Bulgaria
Member
Members
Forum Posts: 19
Member Since:
16/06/2010
sp_UserOfflineSmall Offline

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.

16/06/2010
18:07
Avatar
emo.antonov
Sofia, Bulgaria
Member
Members
Forum Posts: 19
Member Since:
16/06/2010
sp_UserOfflineSmall Offline

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);

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
32 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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information