jqGrid Refreshing Local Data (JSON Object)

前端 未结 6 1826
走了就别回头了
走了就别回头了 2021-01-31 18:44

I\'m trying to use jqGrid with local data and I\'m finding a couple of issues:

I\'m initializing the thing like so:

function refreshGrid($grid, results)
         


        
6条回答
  •  天命终不由人
    2021-01-31 19:23

    You can use simple:

    jQuery("#list")
        .jqGrid('setGridParam',
            { 
                datatype: 'local',
                data:mydata
            })
        .trigger("reloadGrid");
    

提交回复
热议问题