fnRender parsed Object
fnRender parsed Object
![easymind](https://secure.gravatar.com/avatar/3b151315442b9405e43f447c14c93c3a/?default=https%3A%2F%2Fvanillicon.com%2F3b151315442b9405e43f447c14c93c3a_200.png&rating=g&size=120)
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.
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.
This discussion has been closed.
Replies
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
But should have seen the docs where good.
Take care.