holblin

Forum Replies Created

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • in reply to: LoadOnce Doesn’t Work When DataType is function() #97277
    holblin
    Participant

    Hi ,I have the same problem. I not arrive to sort localy when i load with Jsonp and use a jsonreader

    Have you a fix ? The post date to 2009 but it stay in google indexes and I hope you have a new fix …

    Thanks !

    my script :

    jQuery(document).ready(function() {
    jQuery(“#list2”).jqGrid({
    url: 'index.php?page=edit_post&ajax=json&jsonCallback=?',
    postData: “”, // don't send any typical jqGrid parameters
    datatype: “json”, // or “jsonp”
    colModel:[
    {name:'ID',index:'ID',label:'ID',width:60},
    {name:'Type',index:'Type',label:'Type', width:130},
    {name:'Nom',index:'Nom',label:'Nom',width:80},
    {name:'Langues',index:'Langues',label:'Langues',width:150}
    ],
    jsonReader: {
    cell: “”, // the same as cell: function (obj) { return obj; }
    root: “table.rows”,
    page: function (obj) { return 1; },
    total: function (obj) { return 1; },
    records: function (obj) { return obj.table.rows.length; }
    },
    rowNum:10,
    rowList:[10,20,30],
    pager: '#pager2',
    sortname: 'ID',
    sortorder: “desc”,
    viewrecords: true,
    loadonce: true,
    height: “auto”,
    caption: “How to query Google Fusion Tables”
    });
    jQuery(“#list2”).jqGrid('navGrid','#pager2',{edit:false,add:false,del:false},{},{},{},{multipleSearch : true});
    // button for test change datatype

Viewing 1 replies (of 1 total)

Stay connected with us in your favorite flavor!