Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jqGrid "Loading..." overlay showing "undefined" though grid is working

Tags:

jqgrid

I have a jqGrid that's working 100% except that it keeps displaying "undefined" in the "Loading..." overlay. I can't really figure it out. It seems like I should only get the "undefined" message if something isn't set right and the grid would cease to work. But that's not the case. scratches head

I'm not really sure a code sample would help here, but if anyone would like to see a certain part of my code let me know and I'll included.

Has anyone else come across this issue before? I'm probably missing something so simple and small that I can't see it. So my apologies in advance if this is a no-brainer

Thanks for your help.

like image 250
gurun8 Avatar asked Jun 07 '10 15:06

gurun8


2 Answers

That text comes from $.jgrid.defaults.loadtext. So either:

  1. You have an old grid.locale-en.js which doesn't specify it, or
  2. You overwrite it somewhere.
like image 113
Craig Stuntz Avatar answered Nov 24 '22 15:11

Craig Stuntz


In addition, I've found that the <script> tag that defines grid.locale-whatever must appear before the <script> tag that loads jqgrid.

Doesn't make sense to me.

like image 26
Randy Kreisel Avatar answered Nov 24 '22 16:11

Randy Kreisel