I'm using datatables. And by default with pagination feature on sorting one column redraws all the table and puts you to the first page of paginated ones. Is there an easy way to tell datatables that I want to sort and redraw only current pagination? And if there isn't how do I override default sorting feature? Addition: I'm usin static data table without any ajax features.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I've seen a few idea on the Internet but the only thing that worked for me was commenting out the reset to 0 in function _fnFilterComplete
/* Redraw the table */
/*oSettings._iDisplayStart = 0 Andrew nuked this 8/5/2013 ;*/
_fnCalculateEnd( oSettings );
_fnDraw( oSettings );