fnRender parsed Object

fnRender parsed Object

easymindeasymind Posts: 6Questions: 0Answers: 0
edited March 2009 in Bug reports
Hi,

I noticed that the object that is passed to a custom render function is not as described in the documentation.
The doc uses oObj.aData[ oObj.iDataRow ][0] to get the value of first column in, i assume, current row.
But in my case (1.4.2) I think the oObj is not multidemensional and already only contains the current row.
So I use oObj.aData[0] to get the value of the current row and first column.

Replies

  • allanallan Posts: 61,611Questions: 1Answers: 10,089 Site admin
    Hi easymind,

    Could you confirm for me that this error is on the example page ( http://datatables.net/examples/example_column_render.html ) rather than anywhere else. That page was indeed wrong and I have now corrected it.

    The usage page is showing the correct information for me (a single array): http://datatables.net/usage#fnRender

    Allan
  • easymindeasymind Posts: 6Questions: 0Answers: 0
    Yep, sry. I meant example page. Gotta love examples.
    But should have seen the docs where good.
    Take care.
This discussion has been closed.