How to refresh datatable columns on click event
How to refresh datatable columns on click event
Lokeshwari
Posts: 16Questions: 3Answers: 0
I have a form with dropdown. On changing dropdown i will get data which varies everytime. Im binding data and columns dynamically. Dynamic columns are working fine for first time but from second time onwards data is coming fine but it is not binding to table.
This discussion has been closed.
Replies
here is my code for binding datatable. both data and columns are coming from database.also export buttons are visible here. buttons div is empty
$.ajax({
cache: false,
type: "POST",
url: "../AdminReport.asmx/GetConsolidatedReport",
contentType: "application/json",
data: JSON.stringify({
ExamMasterID: ExamID,
By: ExamType
}),
dataType: "json",
success: function (data) {
var table_data = JSON.parse(data.d);