jqgrid not updating data on reload

前端 未结 3 1580
春和景丽
春和景丽 2020-12-22 04:38

I have a jqgrid with data loading from an xml stream (handled by django 1.1.1):

jQuery(document).ready(function(){
  jQuery(\"#list\").jqGrid({
    url:\'/do         


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-22 05:01

    Unloading the grid before making a new request seem to bust the cache for me. Simple use GridUnload() method before the grid fetching code.

    $("#list").GridUnload();
    
    
    jQuery("#list").jqGrid({
        ...
        ajaxGridOptions: {cache: false}
    });
    

提交回复
热议问题