After sort, fnGetNodes & fnGetData should return in new order
After sort, fnGetNodes & fnGetData should return in new order
Consider the following parameters for creating a datatable:
[code]{aaData: [['A', 8],['B', 2],['C', 43],['D', 294],['E', 1]], aoColumns: [{sTitle: 'Col1'},{sTitle: 'Col2'}]}[/code]
After initializing, [A,8] is returned when [code]dt.fnGetData(0);[/code] is called. Good. After sorting by the second column, however, [A,8] is still returned instead of [D,294]. The same goes for [code]dt.fnGetNodes(0);[/code]
Is there a way to get the data out in the order in which it's currently sorted? Thanks!
Kirk
[code]{aaData: [['A', 8],['B', 2],['C', 43],['D', 294],['E', 1]], aoColumns: [{sTitle: 'Col1'},{sTitle: 'Col2'}]}[/code]
After initializing, [A,8] is returned when [code]dt.fnGetData(0);[/code] is called. Good. After sorting by the second column, however, [A,8] is still returned instead of [D,294]. The same goes for [code]dt.fnGetNodes(0);[/code]
Is there a way to get the data out in the order in which it's currently sorted? Thanks!
Kirk
This discussion has been closed.
Replies
Allan
Thanks!
Allan