Sorting on hidden data
Sorting on hidden data
nskwortsow
Posts: 120Questions: 0Answers: 0
Hi,
I am using mRender to draw a bar chart of a value.
How can I sort this column of bar charts, based on the value of [code]val[/code]?
[code]
{ "mData": "PCx","sDefaultContent": "",
"mRender": function(val,type,row){
return '';
}
[/code]
I am using mRender to draw a bar chart of a value.
How can I sort this column of bar charts, based on the value of [code]val[/code]?
[code]
{ "mData": "PCx","sDefaultContent": "",
"mRender": function(val,type,row){
return '';
}
[/code]
This discussion has been closed.
Replies
Another option is to have a hidden column and use aDataSort to force the column with the chart in it to sort on the hidden column.
A final option is to use sType and a custom sorting method to pull the data out of the HTML (the width) and then sort on that :-)
Allan