Hi,
I am recently trying jqGrid in order to use it on some of the pages that I am developing using SpringMVC, JSP.
data that I want to use is JSON.
I'am pretty sure that JSON response comming from server-side is ok, but jqGrid is stuck with the message “Loading…” and nothing happens (data is not populated in grid).
here is the response
|
1 |
{"page":"1",<br />"total":"2",<br />"records":"21",<br />"rows":[<br />{"name":"SRBIJA","alpha2":"RS","alpha3":"SRB"},<br />{"name":"HRVATSKA","alpha2":"HR","alpha3":"CRO"},<br />{"name":"AFGHANISTAN","alpha2":"AF","alpha3":"AFG"},<br />{"name":"ALBANIA","alpha2":"AL","alpha3":"ALB"},<br />{"name":"ALGERIA","alpha2":"DZ","alpha3":"DZA"},<br />{"name":"AMERICAN SAMOA","alpha2":"AS","alpha3":"ASM"},<br />{"name":"ANDORRA","alpha2":"AD","alpha3":"AND"},<br />{"name":"ANGOLA","alpha2":"AO","alpha3":"AGO"},<br />{"name":"ANGUILLA","alpha2":"AI","alpha3":"AIA"},<br />{"name":"ANTARCTICA","alpha2":"AQ","alpha3":"ATA"},<br />{"name":"ANTIGUA AND BARBUDA","alpha2":"AG","alpha3":"ATG"},<br />{"name":"ARGENTINA","alpha2":"AR","alpha3":"ARG"},<br />{"name":"ARMENIA","alpha2":"AM","alpha3":"ARM"},<br />{"name":"ARUBA","alpha2":"AW","alpha3":"ABW"},<br />{"name":"AUSTRALIA","alpha2":"AU","alpha3":"AUS"},<br />{"name":"AUSTRIA","alpha2":"AT","alpha3":"AUT"},<br />{"name":"AZERBAIJAN","alpha2":"AZ","alpha3":"AZE"},<br />{"name":"BAHAMAS","alpha2":"BS","alpha3":"BHS"},<br />{"name":"BAHRAIN","alpha2":"BH","alpha3":"BHR"},<br />{"name":"BANGLADESH","alpha2":"BD","alpha3":"BGD"}]} |
When I see JS console (error tab in Firebug) I see that I have following error:
“b is undefined, jquery.jqGrid.min.js Line 23″
I must missed something. Can someone point me up where I am making mistake?
I've imported following resources:
” media=”screen” />” media=”screen” />" type="text/javascript">
" type="text/javascript">
" type="text/javascript">
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top