Unable to export Ajax Data to Excel in DataTable
Unable to export Ajax Data to Excel in DataTable
vk4boddu
Posts: 12Questions: 1Answers: 0
Hi, I have search page and using DataTable to display the result set and using Export Excel option. Initializing the DataTable while page loading. When click on search button making ajax call to get the search results and then cleared the DataTable and adding rows using rows.add(json).draw(). And then try to export it is not working. Please suggest on this.
Thanks in advance.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Can you show us the code?
$(document).ready( function () {
ResidentReportComponents.init();
} );
function GetResidentReportResults() {
}
var ResidentReportComponents = function () {
}();
Intentionally removed starting div tag to display as palin text
This was not answered by mistake I changed it as answered. So created another discussion for the same question.
You didnt have to do that. and you should format your posts.