Problem export buttons with popover

Problem export buttons with popover

toniux79toniux79 Posts: 13Questions: 4Answers: 0
edited July 9 in Free community support

Hello,

I would like to export some data from my datatable, but the export behavior is not correct on the columns having a popover with some html code in cells.

You can see an example on this link, there is a problem on the column 2 of the exported file, :
http://live.datatables.net/gelaboso/3

Any idea to solve this ?

Thank you,
Anthony

This question has an accepted answers - jump to answer

Answers

  • bindridbindrid Posts: 562Questions: 0Answers: 83

    you can use the customizeData callback to strip out the html

  • toniux79toniux79 Posts: 13Questions: 4Answers: 0

    Thank you for your answer.

    However, it doesn't seem to resolve my problem. Don't you think there is a bug on the export button library ?

  • toniux79toniux79 Posts: 13Questions: 4Answers: 0

    Hello,

    Can you tell me if this forum is the correct place te report this bug ?
    To me there is a bug on the button library.

    Anthony

  • bindridbindrid Posts: 562Questions: 0Answers: 83
    Answer ✓

    You can solve part of your problem by moving the popover off the anchor and onto the cell

              createdRow: function(row, data){
              var cell = $($(row).children().get(1));
                cell.attr("data-toggle", "popover");
                cell.attr("data-content","Ligne 1<br>Line 2<br>Line 3<br>Line 4");
                
              },
    
  • toniux79toniux79 Posts: 13Questions: 4Answers: 0

    It works ! Thank you !!

Sign In or Register to comment.