want to get a column data in fnDrawCallback

want to get a column data in fnDrawCallback

jiangdyjiangdy Posts: 6Questions: 0Answers: 0
edited August 2012 in General
How can I get a column data in fnDrawCallback ? after sort datatable I want to use the sorted data to draw a chart. Would you like to give me some help?

Replies

  • allanallan Posts: 63,541Questions: 1Answers: 10,476 Site admin
    Sounds like an ideal use of the fnGetColumnData plug-in: http://datatables.net/plug-ins/api#fnGetColumnData .

    [code]
    fnDrawCallback: function () {
    var col0data = this.fnGetColumnData( 0 );
    ...
    }
    [/code]

    Allan
  • jiangdyjiangdy Posts: 6Questions: 0Answers: 0
    Dear Allan
    Datatable is really a good plugin. Thanks for your effort! Thanks for your answer to my question. I will see if the fnGetColumnData is what I need !
    Thanks for your quick answer !
This discussion has been closed.