jacquesh

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • in reply to: [ 3.8 – bug ] – Update table with a json string #96209
    jacquesh
    Participant

    OK, I've add a cell, change the form of jsonstring ; but the problem still the same.

    var mystr = '{“total”: “1”,”page”: “1”,”records”: “1”,”rows” : [{“id”:”1″, “cell”:[“cell00711″,”cell00711″,”cell12″,”cell13″,”cell12″,”cell13”]}]}';

    jQuery(“#process_list”)

    .jqGrid(“setGridParam”, {datastr:mystr})

    .trigger(“reloadGrid”);

    in reply to: [ 3.8 – bug ] – Update table with a json string #96190
    jacquesh
    Participant

    my jqGrid definition

    $(“#process_list”).jqGrid({

    datatype: 'jsonstring',

    datastr: mystr,

    colNames:['id','Pid','PPid', 'Name', 'Path','CmdLine'],

    colModel:[

    {name:'id', index:'id', width:0},

    {name:'pid', index:'pid', width:50},

    {name:'ppid', index:'ppid', width:50},

    {name:'name', index:'name', width:150},

    {name:'path', index:'path', width:250},

    {name:'cmdline',index:'cmdline',width:300}

    ],

    sortname: 'pid',

    viewrecords: true,

    sortorder: “desc”,

    multiselect: false,

    caption:”Process list”

    });

    in reply to: [ 3.8 – bug ] – Update table with a json string #96189
    jacquesh
    Participant

    mystr = “{“total”:”1″,”page”:”1″,”records”:”1″,”rows” : [{“id”:”1″, “cell”:[“cell00711″,”cell12″,”cell13″,”cell12″,”cell13″]}]}”

    jQuery(“#process_list”)

    .jqGrid(“setGridParam”, {datastr:mystr})

Viewing 3 replies - 1 through 3 (of 3 total)

Stay connected with us in your favorite flavor!