JQuery tablesorter 2.0, casting a table after changing values

I need to re-sort the table when input elements in cells change by value. I have already created custom sorters for my data that work great, but now I need to re-sort when the data changes.

$('#id').tablesorter(...) almost does what I need, but it seems to apply ANOTHER sorting set for the given table, which leads to a really strange behavior. Is there a way to completely redo the effect of table traffic or, at least, so that the table is used based on new information?

From creating a custom parser, I see that tablesorter builds formatted columns and saves it inside once when the page loads, and I need to change this behavior so that I can use $('#id input').change .

Any ideas? The documentation for this plugin is weak, although it is a great plugin.

+6
jquery tablesorter
source share
2 answers

I think what you need to do is call the update.

 $("#tableId").trigger("update"); 

what am i doing to make my tables.

I agree with you, the documentation for this plugin is weak, as best.

+15
source share

You refer to:

 $("#id").trigger("update"); 
+4
source share

All Articles