Fix for Bug in TableTools

Fix for Bug in TableTools

flightlessbirdflightlessbird Posts: 1Questions: 0Answers: 0
edited August 2011 in Bug reports
I have patched the TableTools plugin to respect the behaviour of fnRender for each column. I'm including the changed section below, but feel free to contact me for the patch.

Starting at line 1408 in TableTools.js
[code]
/* Columns */
for ( i=0, iLen=dt.aoColumns.length ; i

Replies

  • danw82danw82 Posts: 6Questions: 0Answers: 0
    Thanks Alex this is just what I was looking for. However I made a minor modification as I use fnRender on numeric types as well as strings for changing date formats, I have all the dates as unix timestamps then use fnRender to display them in the desired format.

    The modification was to change the following line (8)
    [code]
    if (typeof mTypeData != "string" && dt.aoColumns[i].fnRender) {
    [/code]
    to
    [code]
    if (dt.aoColumns[i].fnRender) {
    [/code]
    It still seems to work but I haven't tested it on string types only numeric.

    Thanks
    Dan
This discussion has been closed.