I am try to add export buttons to my datatable, my table include select boxes inside, the problem is - it export all the options values included in the select box... A am us
In case you'll use export format for only visible columns, fixed column indexes will play some tricks on you, so what helped in my case was checking the node child and if it is select, then make the format
body: function(data, row, col,node) {
var elementType = node.firstChild;
if (elementType != null) {
if (elementType.nodeName == "SELECT") return
$(elementType).find(':selected').text();
else return data;
}
else return data