tablesorter

jQuery tablesorter - loss of functionality after AJAX call

人走茶凉 提交于 2019-12-03 11:26:44
I have recently been experimenting with the tablesorter plugin for jQuery. I have successfully got it up and running in once instance, and am very impressed. However, I have tried to apply the tablesorter to a different table, only to encounter some difficulties... Basically the table causing a problem has a <ul> above it which acts as a set of tabs for the table. so if you click one of these tabs, an AJAX call is made and the table is repopulated with the rows relevant to the specific tab clicked. When the page initially loads (i.e. before a tab has been clicked) the tablesorter functionality

jQuery tablesorter plugin secondary “hidden” sorting

蓝咒 提交于 2019-12-03 11:00:20
问题 I'm using the jQuery tablesorter plugin and I have a column that contains name of month and year like this April, 1975 January, 2001 I would like to sort this column as if it were a date column. As I understand it, it is possible to sort the column with some other 'hidden' value, but I just can't seem to find the documentation for that feature. Any help out there? Update This fork http://mottie.github.com/tablesorter/docs/index.html of the tablesorter had just what I needed; the ability to

tablesorter pager

試著忘記壹切 提交于 2019-12-03 08:49:26
I'm working with tablesorter and I've not been able to find any documentation about the plugin tablesorter pager. The thing is that I have a table that displays some data and in each row there is a delete link that has attached to it the unique identifier of the element that it's going to be deleted (obviously). My question is, is it possible to save the page in which I'm at the moment of deleting, and then set the pager straight to the page it was before? It is because when I reload the table after deleting the row, it goes back to the first page. What I want to do is something like this: /

Problem with sorting dates with jquery tablesorter

℡╲_俬逩灬. 提交于 2019-12-03 06:53:46
问题 I am using tablesorter plugin to sort my tables in an MVC .NET App. Most of my columns are strings and I'm having no problems with them. Neither with the numeric ones. The thing is my datetime columns are also getting sorted as if they were strings. They get sorted like this: 01/04/2009, 02/02/2009, 03/08/2009, etc. I obtain the data from the Model in that View. My call is the default one: $("#table").tablesorter(); I tried specifying dateformat with no luck: $("#table").tablesorter({

jQuery tablesorter plugin secondary “hidden” sorting

依然范特西╮ 提交于 2019-12-03 02:31:24
I'm using the jQuery tablesorter plugin and I have a column that contains name of month and year like this April, 1975 January, 2001 I would like to sort this column as if it were a date column. As I understand it, it is possible to sort the column with some other 'hidden' value, but I just can't seem to find the documentation for that feature. Any help out there? Update This fork http://mottie.github.com/tablesorter/docs/index.html of the tablesorter had just what I needed; the ability to store the value to sort by in an attribute, worked really great. I have a fork of tablesorter that allows

jQuery tablesorter how to find sortList object

痴心易碎 提交于 2019-12-03 02:17:36
I am using the jQuery tablesorter plugin. I am wanting to store how a user has sorted the table on the page and automatically sort that way the next time the page loads. To do this, I first need to be able to find the sortList object that stores how the table is sorted. For the life of me I cannot figure out how to get it. The documentation doesn't seem to have anything on this and I've tried everything I can think of. You need to bind your table element to the tablesorter sortEnd event. All the data for that object is passed in to the handler. You can then get the current sort like so: var

Problem with sorting dates with jquery tablesorter

天涯浪子 提交于 2019-12-02 20:33:31
I am using tablesorter plugin to sort my tables in an MVC .NET App. Most of my columns are strings and I'm having no problems with them. Neither with the numeric ones. The thing is my datetime columns are also getting sorted as if they were strings. They get sorted like this: 01/04/2009, 02/02/2009, 03/08/2009, etc. I obtain the data from the Model in that View. My call is the default one: $("#table").tablesorter(); I tried specifying dateformat with no luck: $("#table").tablesorter({ dateFormat: 'dd/mm/yyyy'}); The odd thing happens when I manually type a static table with random dates. It

JQuery tablesorter problem

爷,独闯天下 提交于 2019-12-02 18:20:14
I'm having a couple of problems with the JQuery tablesorter plugin. If you click on a column header, it should sort the data by this column, but there are a couple of problems: The rows are not properly sorted (1, 1, 2183, 236) The total row is included in the sort Regarding (2), I can't easily move the total row to a table footer, because the HTML is generated by the displaytag tag library over which I have limited control. Regarding (1), I don't understand why the sort doesn't work as I've used exactly the same JavaScript shown in the simplest example in the tablesorter tutorials . In fact,

Table sorter filter for each column

烈酒焚心 提交于 2019-12-02 15:37:43
问题 Can you please help me to have table sorter with ajax for individual column. is there anything inbuilt method to call ajax call for filter column? My source code is below theme: 'blue', widthFixed: true, widgets: [ 'stickyHeaders', 'columnSelector','filter'], textExtraction: function(node, table, cellIndex){ return $(node).text().replace(/\s'/g,''); }, headers: {0: { filter: false},6: { filter: false},7: { filter: false},8: { filter: false}}, widgetOptions : { // Use the $.tablesorter.storage

Tablesorter Filter widget stops working after update on all browsers, no error msg

别等时光非礼了梦想. 提交于 2019-12-02 13:52:14
问题 I'm trying to see how I can fix a problem that I'm having with jQuery Tablesoter widget called 'filter', it stops working after the table is updated without any error message and it does this on all web browsers, the other widgets work like zebra and savesort only filter stops working. here is the code: <script type="text/javascript" src="tablesorter/OVOjquery-1.10.2.min.js"></script> <script type="text/javascript" src="tablesorter/OVOjquery.tablesorter.min.js"></script> <script type="text