fnRender now updates the datatable's data

fnRender now updates the datatable's data

chris.e.simpsonchris.e.simpson Posts: 6Questions: 0Answers: 0
edited October 2010 in Bug reports
I am returning a table from a service and the first column contains a simple two or three character code. I'm using fnRender to render the first column as a fully descriptive version of this code and then I'm using fnRender on another column to build a URL basing logic on this code value.

This has been working for a long while but I recently upgraded to version 1.7.3 from 1.6.2 and now my URL building logic is breaking. The reason it is breaking it that after the first fnRender, the code value held in "aData" had been updated to the rendered version.

My understanding was that aData holds the original data values for the cells in the table. Am I wrong about this or has something broke?

My code follows. Thanks in advance.

Chris

[code]
"aoColumns": [
{
"sTitle": "Item",
"fnRender": function(obj) {
return codeTypeToString(obj.aData[obj.iDataColumn]);
}
},
{ "sTitle": "id", "bVisible": false },
{
"sTitle": "Found In",
"fnRender": function(obj) {
return getLink(obj.aData[obj.iDataColumn - 2], obj.aData[obj.iDataColumn - 1], obj.aData[obj.iDataColumn], obj.aData[obj.iDataColumn + 1]);
}
},
[/code]

Replies

  • chris.e.simpsonchris.e.simpson Posts: 6Questions: 0Answers: 0
    Apologies all. Just did a proper search of the forum and found my answer.

    I should be using bUseRendered
This discussion has been closed.