Forum



15:46

14/09/2010

Hi,
I am using editable jqgrid. Everything works fine, but as soon as I add navigator=true option to my grid, it gives error 'uncaught exception: jqGrid - No such method: navGrid'
What could be the problem? I have all the dependent scripts in my path. I am actually using struts plugin of jqgrid. Please help, I have spent hours working on this problem, can't even debug...debugger can't find source code at the point of error.
I am experiencing the same thing in IE7. When i add the navigator="true" attribute to my editable grid, I get some sort of berzerk javascript error which reads
Line: 368382624
Char: 367
Error: Exception thrown and not caught
If I run the same code in Firefox and go to the error dialog, I see exactly the same message which deepakpol has posted. Let me show you all what my grid looks like at this point:
<sjg:grid
id="gridtable"
caption="Grid - Take 1"
dataType="json"
href="Ingrid"
editurl="EditGrid"
editinline="true"
viewrecords="true"
navigator="true"
pager="true"
gridModel="gridModel"
rowList="10,15,20"
rowNum="15"
rownumbers="true">
<sjg:gridColumn name="id" index="id" title="ID" key="true" formatter="integer" sortable="true"/>
<sjg:gridColumn name="appn" index="appn" title="APPN" sortable="true"/>
<sjg:gridColumn name="k211" index="k211" title="DOL_2011" editable="true" edittype="text"
editrules="{number: true}" formatter="currency" sortable="true"/>
<sjg:gridColumn name="k212" index="k212" title="DOL_2012" editable="true" edittype="text"
editrules="{number: true}" formatter="currency" sortable="true"/>
<sjg:gridColumn name="k213" index="k213" title="DOL_2013" editable="true" edittype="text"
editrules="{number: true}" formatter="currency" sortable="true"/>
<sjg:gridColumn name="k214" index="k214" title="DOL_2014" editable="true" edittype="text"
editrules="{number: true}" formatter="currency" sortable="true"/>
<sjg:gridColumn name="k215" index="k215" title="DOL_2015" editable="true" edittype="text"
editrules="{number: true}" formatter="currency" sortable="true"/>
<sjg:gridColumn name="k216" index="k216" title="DOL_2016" editable="true" edittype="text"
editrules="{number: true}" formatter="currency" sortable="true"/>
</sjg:grid>
Ah, I see why now. I am using struts2-jquery-grid-plugin-2.4.0.jar which contains the .js file jquery.jqGrid.js. I searched through their .js file and it lacks the navGrid function. So that jar file and <sjg> tags will not cut it for me unless I start altering them.
This is the second error I have encountered (rownumbers="true" with <sjg> tags can yield negative row numbers is the other one) but I am not quite sure where to address these issues as it seems like a mutual blame, can't win situation. So who do I contact if I have <sjg> tag errors of this sort?
12:40

14/09/2010

demongolem said:
Ah, I see why now. I am using struts2-jquery-grid-plugin-2.4.0.jar which contains the .js file jquery.jqGrid.js. I searched through their .js file and it lacks the navGrid function. So that jar file and <sjg> tags will not cut it for me unless I start altering them.
This is the second error I have encountered (rownumbers="true" with <sjg> tags can yield negative row numbers is the other one) but I am not quite sure where to address these issues as it seems like a mutual blame, can't win situation. So who do I contact if I have <sjg> tag errors of this sort?
I also suspected this initially but may not be the case. What I see is struts plugin has a file grid.formedit.js which has navGrid function.
I also tried removing the jquery.jqGrid.js file from jar and using grid plugin's 'jquery.jqGrid.min.js' jar instead with no luck. I wonder if this is due to calling convention difference between old version (where method calls are made navGrid(parameters...)) and new version (where method calls are made jqGrid('navGrid', parameters...)).
I tried this using grid plugin provided by trirand instead of struts plugin and tags and it works fine.
Thanks,
-Deepak
deepakpol said:
demongolem said:
Ah, I see why now. I am using struts2-jquery-grid-plugin-2.4.0.jar which contains the .js file jquery.jqGrid.js. I searched through their .js file and it lacks the navGrid function. So that jar file and <sjg> tags will not cut it for me unless I start altering them.
This is the second error I have encountered (rownumbers="true" with <sjg> tags can yield negative row numbers is the other one) but I am not quite sure where to address these issues as it seems like a mutual blame, can't win situation. So who do I contact if I have <sjg> tag errors of this sort?
I also suspected this initially but may not be the case. What I see is struts plugin has a file grid.formedit.js which has navGrid function.
I also tried removing the jquery.jqGrid.js file from jar and using grid plugin's 'jquery.jqGrid.min.js' jar instead with no luck. I wonder if this is due to calling convention difference between old version (where method calls are made navGrid(parameters...)) and new version (where method calls are made jqGrid('navGrid', parameters...)).
I tried this using grid plugin provided by trirand instead of struts plugin and tags and it works fine.
Thanks,
-Deepak
I saw on the Issues list some sort of problem with 2.4.0 that was fixed in 2.4.1 for our scenario. Downloading 2.4.1 did not help me, but maybe it will help you. I think it was Issue 292.
Most Users Ever Online: 715
Currently Online:
77 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