tablesorter

how to apply table sorter for nested headers in table?

自古美人都是妖i 提交于 2020-01-07 06:26:10
问题 in a single table the tablesorter functionality working fine.But i am confusing to apply the table sorter for the below scnario. ID Name Phone 1 vasu 4562789 Role status submitted admin completed yes user notcompleted no 2 venkat 78979789 Role status submitted admin completed yes 3 balu 768792 Role status submitted user completed yes 4 jj 897422 Role status submitted user completed no <script type="text/javascript"> $("#maintbl").tablesorter(); </script> <table class="tablesorter" id="maintbl

Jquery TableSorter 2.0 - Revert Sort order

不想你离开。 提交于 2020-01-06 06:47:46
问题 All, I am using the JQuery TableSorter Plugin. The table sorts fine for the selected columns. Consider that when the page loads, there is no sorting taking place. Now, if the table is sorted by one column, it sorts. Now, upon clicking a "Revert Sort" link outside the table, the tablesorter should revert to the initial sort order, even if it sorted multiple coumns before. How can we achieve this? Thanks 回答1: So by " there is no sorting taking place " you mean you just do $("#myTable")

How to sort date with jquery tablesorter which is in format 'dd/mm/yyyy - dd/mm/yyyy'

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-05 12:27:50
问题 I am having date in dd/mm/yyyy - dd/mm/yyyy format. How to sort this with jquery tablesorter. I try to sort it with sorter:"shortDate" and dateFormat:'ddmmyyyy' but it doesn't sort it in correct order. <table> <thead> <tr><th>Date</th></tr> </thead> <tbody> <tr class="reportcell odd "> <td> <div class="time">28/04/2014 - 11/07/2014</div> </td> </tr> <tr> <td> <div class="time">28/04/2014 - 13/05/2014</div> </td> </tr> <tr> <td> <div class="time">22/07/2014 - 22/07/2014</div> </td> </tr> <tr>

How to sort date with jquery tablesorter which is in format 'dd/mm/yyyy - dd/mm/yyyy'

左心房为你撑大大i 提交于 2020-01-05 12:27:30
问题 I am having date in dd/mm/yyyy - dd/mm/yyyy format. How to sort this with jquery tablesorter. I try to sort it with sorter:"shortDate" and dateFormat:'ddmmyyyy' but it doesn't sort it in correct order. <table> <thead> <tr><th>Date</th></tr> </thead> <tbody> <tr class="reportcell odd "> <td> <div class="time">28/04/2014 - 11/07/2014</div> </td> </tr> <tr> <td> <div class="time">28/04/2014 - 13/05/2014</div> </td> </tr> <tr> <td> <div class="time">22/07/2014 - 22/07/2014</div> </td> </tr> <tr>

Appying a custom pager to multiple tables in tabs

☆樱花仙子☆ 提交于 2020-01-05 08:04:24
问题 I have a series of dynamically generated tables, each one in it's own tab. The table sort and paging functions work fine on separate tables. While it seems that I can add a custom pager to one table using: $.tablesorter.customPagerControls It throws an undefined error if I try to use it in the $.each loop that iterates through the tables. $('.results-panel').find("table").each(function (){ var id = $(this).attr("id"); var pagerID = $(this).attr("data-pagerID"); //apply table sorter to each,

JQuery tablesorter using ajax and dynamic thead and tbody sections

偶尔善良 提交于 2020-01-04 06:28:27
问题 I am attempting to add in some table sorting using the jquery tablesorter plugin to a Rally app using dojo, struggling with how to hook up the update callback for the tablesorter. I have html that looks like this (thead and tbody are separated as they are being dynamically generated i.e. number of columns is not known in advance): <table id='myTable' class='tablesorter'> <thead id='sort-head'></thead> <tbody id='sort-body'></tbody> </table> tablesorter init is here <script type="text

Show no record found using tablesorter search widget

本秂侑毒 提交于 2020-01-04 06:25:11
问题 I am using "jquery.tablesorter.widgets.js" for Table filter working fine, but I have to display " No Data Found" when records not available based on Search Criteria. I'm not using any pager on my table. i have checked this link TableFilter Plugin with Null Data but unable to resolve my problem. 回答1: Without the pager you'll need to create a message row yourself (demo): CSS tr.noData td { background: #eee; color: #900; text-align: center; } JS $('table').on('filterEnd filterReset', function()

Tablesorter, sub group sorting

旧时模样 提交于 2020-01-03 10:19:09
问题 I've tried to make a widget that can sort a group of rows separately inside a table and at the same time make the row-group to stick with "grouped rows". I can't figure out how to approach this problem ... EDIT: I want to sort on the non colspan columns. every group should behave as a sub-table Basic setup in jsfiddle, can anyone push me in the right direction ? EDIT: new jsfiddle http://jsfiddle.net/L8bwW/28/ 回答1: Here is a Working example that does not use tablesorter. The key is to use the

Tablesorter, sub group sorting

元气小坏坏 提交于 2020-01-03 10:19:07
问题 I've tried to make a widget that can sort a group of rows separately inside a table and at the same time make the row-group to stick with "grouped rows". I can't figure out how to approach this problem ... EDIT: I want to sort on the non colspan columns. every group should behave as a sub-table Basic setup in jsfiddle, can anyone push me in the right direction ? EDIT: new jsfiddle http://jsfiddle.net/L8bwW/28/ 回答1: Here is a Working example that does not use tablesorter. The key is to use the

jQuery Table sorter: stop sorting

这一生的挚爱 提交于 2020-01-03 08:29:17
问题 Is it possible to stop table sorting if user clicks on div inside of table header th ? In my case div has function onClick="resize(e)" on which I do: function resize(e) { if (!e) var e = window.event; e.stopPropagation(); .... But it doesn't work. Edit: Table is sorted before e.stopPropagation() or return false 回答1: I made two demos for you. The first one has the content of the table header wrapped in a span and the second one uses the undocumented onRenderHeader function to add the span