jqGrid loadonce doesn't work with asp.net

后端 未结 4 825
死守一世寂寞
死守一世寂寞 2021-01-03 13:29

Does anyone know how to solve this nasty issue with asp.net+asmx+jqGrid sorting. Because, in order to call pagemethods or asmx web services from jqGrid, it needs to be hacke

4条回答
  •  死守一世寂寞
    2021-01-03 14:16

    It's a little bit late, but here's a (the?) super-easy solution for any future solution-seekers:

    gridComplete: function(){ 
      $("#yourGridID").setGridParam({datatype: 'local'}); 
    }
    

    That's it. I'm using 3.7.2, can't speak for any other versions. The problem (apparently) stems from 'loadonce' only working with the pre-defined datatype values, which a function is not. I believe the other built-in values will also work, but 'local' makes sense.

提交回复
热议问题