Change value on fnRowCallback, and using search
Change value on fnRowCallback, and using search
We are having an issue where the user types in a string into the default Search box over the table and not finding matches for altered data.
We change data like timestamps for pretty strings in the fnRowCallback. I use $('td:eq(3)',nRow).html(formatUTC(aData[3])); and the data looks beautiful. However the search array that is created before the fnRowCallback does not have this new pretty string. I originally tried setting the .text, the .html, and the .value of the td to see if this would help, but again, I thing it is preexisting data. We get the data once, put it in the UI, then expect all work to be done on the client. In a past release we sent it back to the server to deal with it, but when there are only 20 records in the table, that becomes a bit overkill.
Is it possible in the fnRowCallback to also alter the search array for searching at the same time? is there a better approach? Am I really off?
We change data like timestamps for pretty strings in the fnRowCallback. I use $('td:eq(3)',nRow).html(formatUTC(aData[3])); and the data looks beautiful. However the search array that is created before the fnRowCallback does not have this new pretty string. I originally tried setting the .text, the .html, and the .value of the td to see if this would help, but again, I thing it is preexisting data. We get the data once, put it in the UI, then expect all work to be done on the client. In a past release we sent it back to the server to deal with it, but when there are only 20 records in the table, that becomes a bit overkill.
Is it possible in the fnRowCallback to also alter the search array for searching at the same time? is there a better approach? Am I really off?
This discussion has been closed.