Table Refresh

Table Refresh

baskingbasking Posts: 1Questions: 0Answers: 0
edited June 2011 in TableTools
Hi,
I'm using Datatable and TableTools. I have an input textbox that user can enter the value. When i export the excel, the datatable is not giving the modified value. Kindly let me know what i'm missing.

Replies

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin
    The way TableTools export works is that it will take the innerHTML of the cells in the table. If you want to take something else, such as the value from an input element you would need to write a custom fnGetTableData() function (you could use the source in TableTools as a grounding) to be used in the button's fnClick function.

    It's a good idea for the future though - I will add it to my list!

    An alternative would be to update the innerHTML of the cell, but that would mean changing your input to be something like an editable cell with jEditable or similar.

    Allan
This discussion has been closed.