1. 首次加载时候设置 jqGrid 属性 datatype: 'local'

$("#grid").jqGrid({  
    url:"#",  
    datatype:"local",  
    //其他的操作
}); 

2.需要加载数据时,把属性datatype: 设置为json或者XML 即可

 $("#NF-search").click(function () {
         $gridList.jqGrid(
           'setGridParam', {
                datatype: 'json'  
          }).trigger('reloadGrid');
});

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2022-01-14
相关资源
相似解决方案