spsmysp

Forum Replies Created

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • in reply to: jqgrid jsp – only grid displayed no data #96905
    spsmysp
    Participant

    I had this problem too. Actually, I read this page tried and tried again. But could not get the data shown in json format.

    Finally, I found this page:http://www.comanswer.com/question/jqgrid-with-json-data-renders-table-as-empty.

    The reason that the data can not be shown is that our json format is not strict enough.

    reference here: http://simonwillison.net/2006/…..t/11/json/

    {page: '1', records: '6', rows: [{cell:['X-RAY', '46190', '1144', '2127', '17', '49479'], id: '1'},{cell:['NMR', '6846', '849', '146', '6', '7847'], id: '2'},{cell:['ELECTRON MICROSCOPY', '165', '16', '59', '0', '240'], id: '3'},{cell:['HYBRID', '13', '1', '1', '1', '16'], id: '4'},{cell:['other', '108', '4', '4', '9', '125'], id: '5'},{cell:['Total', '53322', '2014', '2337', '33', '57707'], id: '6'}],total: '1'}

    —————————————————————————————————->>>>>>>>>>>>>>>>>>>>>>

    {“page”: “1″,” records”: “6″,”rows”: [{“cell”:[“X-RAY”, “46190”, “1144”, “2127”, “17”, “49479”],”id”: “1″},{“cell”:[“NMR”, “6846”, “849”, “146”, “6”, “7847”],”id”: “2″},{“cell”:[“ELECTRON MICROSCOPY”, “165”, “16”, “59”, “0”, “240”],”id”: “3″},{“cell”:[“HYBRID”, “13”, “1”, “1”, “1”, “16”], “id”: “4″},{“cell”:[“other”, “108”, “4”, “4”, “9”, “125”],”id”: “5″},{“cell”:[“Total”, “53322”, “2014”, “2337”, “33”, “57707”],”id”: “6″}],”total”: “1″}

    maybe, you should replace the by if you place the string above between the ” “

    PS: I am sorry for some grammer error, my english is pool. Thanks!

Viewing 1 replies (of 1 total)

Stay connected with us in your favorite flavor!