Currency sorting only sorts current entries
Currency sorting only sorts current entries
Hi,
I've used the currency detection and sorting plugins to sort currency values in my table formatted as £xxx.xx
The sorting does work but only for the current entries in the table and does not sort using all entries so for example I have 10 entries by default so when I click sort on the column it will only sort those 10 values into order and not all the values from the table.
Here is the code I am using for my table (the uk_date detection and sorting works fine and accesses all table entries)
[code]
$(document).ready(function() {
$('#index_table').dataTable( {
"aoColumns": [
{ "sType": "uk_date" },
null,
null,
{"sType": "currency"},
{"sType": "currency"}
]
} );
} );
[/code]
Any ideas as to why this may be? Thanks very much for any help!
Tom
I've used the currency detection and sorting plugins to sort currency values in my table formatted as £xxx.xx
The sorting does work but only for the current entries in the table and does not sort using all entries so for example I have 10 entries by default so when I click sort on the column it will only sort those 10 values into order and not all the values from the table.
Here is the code I am using for my table (the uk_date detection and sorting works fine and accesses all table entries)
[code]
$(document).ready(function() {
$('#index_table').dataTable( {
"aoColumns": [
{ "sType": "uk_date" },
null,
null,
{"sType": "currency"},
{"sType": "currency"}
]
} );
} );
[/code]
Any ideas as to why this may be? Thanks very much for any help!
Tom
This discussion has been closed.
Replies
Allan