I'm using the simplePagination jQuery plugin to perform the pagination and table sorter for sorting and filtering the inputs. The reason i chose 'simplePagination' over 'tablesorter pager' as i wanted to perform similar functionality as the simplePagination perform for my project. However I'm seeing some issues/clashes while using tablesorter widget and simplePagination plugin. Issues: 1) im unable to display the required records per page (i.e: 10 records on a page) anymore. 2) im unable to filter the items when i type in the search box.
below is my initialization for both both plugins:
tablesorter: JS
$("#table").tablesorter({
widgets: ['zebra', 'filter'],
widgetOptions : {
filter_columnFilters: false
}
simplePagination:Js
perPage = 10;
$("#pagination").pagination({
items: 20,
itemsOnPage: perPage,
onPageClick: function(pageNumber) {
var showFrom = perPage * (pageNumber - 1);
var showTo = showFrom + perPage;
items.hide().slice(showFrom, showTo).show();
},
});
has anyone encountered similar situation before..Any ideas how can it be resolved?? Thanks