Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用带有datatype:'local' 的jqgrid ,我手动处理排序,在排序时我从服务器获取数据并使用addRowData绑定,但在我的排序事件之前,jqgrid 的默认客户端排序发生。
在获取排序之前使用清除网格中 的记录$('#gridelementid').jqGrid('clearGridData');
$('#gridelementid').jqGrid('clearGridData');