Wait, isn’t it possible to not detect that in the “sort” callback of the dataAdapter ?
sort: function() {
$("#mygrid").jqxGrid('updatebounddata', 'sort');
},
It should be simple enough to set a flag before calling “removesort” and exit from the callback instead of doing the updatebounddata.
do_not_update = true;
$("#mygrid").jqxGrid('removesort');
do_not_update = false;
And the callback changed like this:
sort: function() {
if(do_not_update)
return;
$("#mygrid").jqxGrid('updatebounddata', 'sort');
},
Maybe it works for you 😉