DT 1.10 - ajax[success:] property preventing columns[data:] from being set
DT 1.10 - ajax[success:] property preventing columns[data:] from being set
dynamiclynk
Posts: 4Questions: 1Answers: 0
Is it by design if you have for example the success property set
ajax: {
dataSrc: 'data',
url: baseURL + 'Resource/Data',
type: 'POST',
success: function (data) {
v = data;
s = JSON.stringify(v);
}
}
It will prevent the columns data from being set
columns: [
{ data: 'Field1' },
{ data: 'Field2' }
]
Once I comment out the below the columns are displayed correctly.
success: function (data) {
v = data;
s = JSON.stringify(v);
}
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Yes, the
ajax
documentation says:Although in the documentation I can see more questions like this in future. I'll look at adding this ability in a future release.
Allan