How to add Back Button Instead of Escape key in Print Page-Tabletools

How to add Back Button Instead of Escape key in Print Page-Tabletools

vivekpv10vivekpv10 Posts: 6Questions: 0Answers: 0
edited May 2013 in TableTools
How can i add a back button in Print preview page.By default table tools using esc key for navigating to original page.Instead i need a back button in preview page,so that by clicking on it,it will navigate to previous page.Back button should have same functionality as "ESC" button currently doing.How can i achieve this??

Replies

  • phishrksphishrks Posts: 1Questions: 0Answers: 0
    edited May 2013
    I'm having the same issue, looks like the print button actually just changes the style sheet of the table, so the page hasn't actually been redirected, we are still on the the same page, I believe the better idea might be a refresh? Let me know if you think of anything....thanks!
  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    You could use the fnPrint method: http://datatables.net/extras/tabletools/api#fnPrint .

    Allan
  • vivekpv10vivekpv10 Posts: 6Questions: 0Answers: 0
    edited May 2013
    i am initializing like this.. {
    "sExtends": "print",

    "mColumns": "visible",

    }
    i am really confused..How can i add a print button through configuration...can anyone pls help by posting a working example ..I hope many of them having same issue..It will be helpful to all..
  • vivekpv10vivekpv10 Posts: 6Questions: 0Answers: 0
    edited May 2013
    got it..working.. it is like this....replace the_id_of_your_table with correspinding table id
    { "sExtends": "print",
    "sMessage": "Your original message"
    + " "
    }
This discussion has been closed.