nskarthik

Forum Replies Created

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • in reply to: JQGRID with JsonData using addJSONData …need Help #102321
    nskarthik
    Participant

    Hi

    as per the PDF provided

    >>JSON data is handled in a fashion very similar to that of xml data. What is important is that the definition >> of the jsonReader matches the data being received datatype: json, (or jsonstring)

    Some thing is wrong in here

    var data = {
              “total”: “1”,
              “page”: “1”,
              “records”: “2”,
              “rows” : [
                {“id” :”1″, “cell” :[“cell11”, “cell12”, “cell13″,”cell13”]},
                {“id” :”2″, “cell”:[“cell21”, “cell22”, “cell23″,”cell13”]},
              ]
            };

    Researched and found that changing   datatype : “jsonstring”,  TO  datatype : “json”,   WORKED

    I am pretty sure some bug has squeezed in some where…  :(

    with regards
    Karthik

Viewing 1 replies (of 1 total)

Stay connected with us in your favorite flavor!