• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
phpGrid in CI Error

I am trying to find a really good datagrid with lots of features; Search, Sorting, In-line Editing, Export to Excel, Hidden columns, Validation, etc.
The one I like so far is phpGrid but am getting an error.
Integrating it with CI I followed the below instructions which appeared to work mostly but am getting the following error. My page loads just find but the table does not show.

TypeError: jQuery(...).jqGrid is not a function
loadtext:"Loading phpGrid Lite..."

Install instructions:

I am still new to this whole development thing so any ideas how to fix would be great
If you know of an easier/better grid to use I am open to change.


I don't know anything about that plugin, but according to the message you aren't loading the plugin itself so the functions don't exist. This is usually done in the head of the document, right after you include jQuery itself.

It appears to be loading the jqgrid plugin in the middle of my page.
According to Firebug Script:
<head>stuff... other jquery calls used elsewhere... stuff</head>

menu bar

<body>stuff... jqgrid setup... stuff... trying to call jqgid</body>

Is this okay or does it need to be at the top of the page?
Thanks again and sorry for the dumb questions.

I'm sorry, I really don't know as I've not used that plugin. I usually keep all javascript in the head of the document. Jquery goes first, all plugins go next, and then the code to actually use/assign the plugins to elements go last.

I think the order I mentioned is more important than where in the page they are located.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.